Deleting a spinner after saving data

t’s common for fields to be deleted or disabled after saving data to the database. An example is a text field.
image

Now, how would this work for a spinner?

When I do that, it deletes all the string elements from the list. Is there a way to do this without deleting the lists?

Hi Carlos,

I didn’t really understand it very well, are you trying to reset the spinner selection?
If so, there is a dedicated block called Spinner.Selection that you can set to “”.

1 Like

Don’t change the Spinner’s Elements property after saving. To reset it, only change the Selection property:

set Spinner1.Selection to ""

If that clears the list in your app, then another block is probably resetting Spinner1.Elements at the same time. Check the blocks that run after the save operation and make sure you’re not setting Elements to an empty list or empty text.

Another option is to set the selection back to the first item:

set Spinner1.SelectionIndex to 1

This keeps all Spinner items and simply resets the selected value. Please share a screenshot of your blocks if the problem continues.

1 Like

Thanks guys, it worked! spinner.selection to " "

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.