1014
Views
3
Comments
Solved
dropdown selection empty on load
Question

Dear 

I need the selected index -1 on dropdown list in reactive development.

by default it is selecting first selection. 



download.png
2023-03-16 16-29-51
Paulo Rosário
Solution

Hello Mohammed Abdul Muqeet,

Another option is to add an empty string "" or a "-" to the Empty text option of the dropbox. 


Hope it helps!

Paulo Rosário

2019-04-23 11-32-25
Muhammed Riyas

Hello Muhammed,

By default, in reactive app dropdown widget shows the first element in the list.

 

To achieve your requirement, you have to add a new value to the beginning of the list.

Steps:

  1. Get the list to show it in the dropdown.
  2. Create an action for OnAfterFetchEvent.
  3. Add new value to the 0th indexes of the list.


Please refer to the attachment for more details.

snip.png
UserImage.jpg
NOTHANDO KHUMALO

Thanks for this Muhammed, it worked perfectly for my scenario. 

2023-03-16 16-29-51
Paulo Rosário
Solution

Hello Mohammed Abdul Muqeet,

Another option is to add an empty string "" or a "-" to the Empty text option of the dropbox. 


Hope it helps!

Paulo Rosário

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.