16
Views
2
Comments
Dropbox 'grey out' option
Question
Application Type
Reactive

I have an entity with the following three attributes:
name (String)
Show(Boolean)
Reason(String)

I will use the following sample as an example:
ID  |     Name  |    Show |    Reason
1           John           True       
2           Jane           False        Medical
3           Jimmy        True
I want to display them in a dropbox (Including the reason), however if the 'show' value is false, I want it to be greyed-out and cannot be select. It should still be visible. 



Have you tried this?

Hello Jia,

Do you want to display all 2 records in single line like ( Jane (Name ) Medical (Reason).

If yes then I'll suggest create structure of variable (attribute= DropdownLabel) and use same structure for local variable in screen and its data type should be list of structure. 

Now on OnAfterFetch Action of this entity use foreach to add the details to the list that you have created in above step. 

Use same list in dropdown, you will get the name and reason. You can use the forge component mentioned by Zafar to disable the option in dropdown.


Regards,

Komal

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