Hi Team,
I have drop-down that populates based on structure from the list based on different conditions,drop-down values changes based on different conditions coming from list,
In one condition I have only one element in list ,I want to show that as default selection when the screen loads,
Please suggest
Hi Ujwala,
For your case, I think you can use If widget to separate 2 dropdowns.
If the list has 1 element then display a dropdown with no default value. By doing this the dropdown will show default element as the only 1 element in the list.
If the list has more than 1 elements then display a dropdown with default empty value (if reactive web app then set "Empty text" property, OR Traditional web app you can set default empty value in Special List).
Regards,
Khuong
When creating a question, please let us know if you are doing reactive or traditional.
In any case, I think this post can help you for reactive
https://www.outsystems.com/forums/discussion/67185/dropdown-in-reactive/
For traditional, on combo boxes, you have this post:
https://success.outsystems.com/Documentation/How-to_Guides/Front-End/How_to_order_and_set_the_default_value_in_a_combo_box
Let me know if this don't work for you :)
Kind regards,
Márcio