How do I set my Select Widget element to always default to the first option?

There may be a situation that you have where the select widget is defaulting to the First option in the list when using the Dynamic Value of {-1}. If you would like your select widget to default to blank or no options selected please follow the steps below.

1. Create a Select Widget on your form.

2. Create a Text Widget to the very bottom of your form ***This is important that it is at the very bottom of the form.

Apply the Following properties to the two widgets below:

Select Widget

Data Column Name: my_select

Dynamic Value: if(select_clear=="yes"){my_select=-1}


Text Widget

Data Column Name: select_clear

Dynamic Value: "yes"

Condition Value: false


This function will allow the select widget to always default to no options selected when you first open the form.

    Was this article helpful?
    1 out of 1 found this helpful
    Have more questions? Submit a request


  • Avatar

    Why is it important that the hidden field be at the bottom of the form?

  • Avatar

    Would this work with pick list elements as well?

  • Avatar
    Tony Ruth

    Hi Mike, this should apply to pick list widget as well.

    @ Ben, you don't need to hide it, but makes for a cleaner user experience.

  • Avatar
    John Gilbert

    Another way is to simply write this as the Dynamic Value for the select:
    I'm not sure why it works, but it reliably works on android and apple. David at IForms Support says this approach is fine.
    Same idea applies to other types of element. For a text control, it would be:
    {my_text = ""}

Powered by Zendesk