Is there a way to disable items in a dropdown?

0
I have a combobox dropdown, in which i am currently filtering out some using Xpath in a microflow.    However instead of hiding the items all together, is there a possibility to show these items but in a disabled way so user cannot select them.
asked
2 answers
1

Hello Pranav,

 

I am afraid there is not such thing out of the box for the combo box, but it could be a nice enhancement so post as an idea on the forum.

If it is really a necessity you could try to adjust the widget or to adjust the styling of the results based on a certain attribute.

 

Hope this helps,

 

Good Luck!

answered
1

Hi, 

Since the built-in ComboBox widget doesn’t support disabling individual items, you can use JavaScript or CSS for a custom solution. Maybe CSS to style the disabled items: 

select option:disabled {    color: gray;    background-color: lightgray;}

answered