33
Views
4
Comments
Empty text not showing in dropdown
Question
Application Type
Reactive

I am using dropdown from where the user can select any molecule, but when the user has not selected anything then, the dropdwon should show "Select" as empty text and I have appied it in the properties tab in service studio but, when I open the application in the browser, A molecule is selected instead of empty text.

empty text in service studio.PNG
empty text in browser.PNG
2024-10-19 11-15-19
Sazid

Hi @Tarun Singh 

Can you confirm if drop down variable is not initialized with a specific molecule? Share oml if possible.


Thanks!

2022-06-07 11-25-18
DiogoRomero

Hi @Tarun Singh ,

If every time you open your app it already has that "molecule" value pre-select it means the variable used on the dropdown has the "Id" of that assigned to it through some logic, or check your logic to guarantee that you don't have some valid data like an id "0" that the dropdown is assuming because there is no null on the integer property. 

If you need extra help, send me the .oml :) 

2019-01-31 08-54-57
André Costa
Champion

Hi @Tarun Singh !

Has you can validate in this OML, you solution is correct, the only difference is the data.

Please guarantee that your data source dont have null or empty values in the property "value".

oml_AC.oml
UserImage.jpg
Cvdb

It could also be that your variable used on the dropdown has a default value pre defined, which corresponds to one of the Molecule Id's.

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