9
Views
3
Comments
Solved
Dropdown in reactive
Application Type
Reactive

Hi. Unlike traditional web where you can set the default text for value 0 in a drop down. How do i do that in reactive web such that the first value on my list is not the default value. I have a drop down with October, November and December. By default it has october in the list, the challenge i am having is if i select November and try to select October again, i can't. I want to have default text that says, "Select month and october now becomes the 1st option on the drop down.

Rank: #64
Solution

Hi RUDO,


On your query AvailableMonths, you can add an action for OnAfterFetch (code to run after fetching the months):

Now you can add a new element to the first position (position 0) of AvailableMonths.List by using ListInsert (you can add this dependenc from System):


Hope it helps.


Regards,
João

Rank: #286

Hi Rudo,

You can enter the 'Select Month' option in the 'Empty Text' property of the dropdown which will give 'Select Month' option by default with value 0 and let you select desired value from the dropdown as below:


Hope this is what you want, Thanks!!

Thank you