Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Deselect Items Selected In A Multi-select List Box

Avatar

Former Community Member
Hi,

I have a form with a checkbox (Company Name Unknown) and a multi-select list box below this with a large list of company names. As long as the checkbox is unchecked, the user can select as many items as s/he wants from the list box of companies.



However, if user checks the "Company Name Unknown" checkbox then I want to do the following things:

1. Deselect any items in the list box that the user may have selected before



2. Disable the user from selecting any more items in the list box - I know that this can be done using the access='readOnly' property, but it is the first thing that I am having trouble with.



Any help with this will be really appreciated.



Thank you!



Cheers, Shruti
0 Replies