How to use spinner in conditions? In form it doesn't work correctly