Hello,
I have a requirement that toggle multiple-select columns disability. The detail as below
I have 4 multiple-select columns: Category (abc_category), Tool (abc_tool), Book (abc_book) and Food (abc_food).
Category
- Tool (100010000)
- Book (100010001)
- Food (100010002)
Tool
- Tool01(100010000)
- Tool02(100010001)
- Tool03(100010002)
Book
- Book01(100010000)
- Book02(100010001)
- Book03(100010002)
- Book04(100010003)
Food
- Food01(100010000)
- Food02(100010001)
All the columns are inserted in a Form. When the form onload, only Category displayed. Once selecting one/more item/s, the relate column/s will display and the item/s can be selected.
For example,
1. In Category, Tool is selected, the Tool column displayed and then the items, for example, Tool01 and Tool03 are selected.
2. Now, in Category, I unselect Tool item, the Tool column should be disappeared from the form AND the selected items, Tool01 and Tool03 need to be cleared.
3. When I again select items Tool from Category, Tool column will display, but it's a blank column.
My code as below. Part of the second functionality does not work, that mean, cannot empty Tool column once I unselect Tool item in Category. Could you please check the code and find where is wrong.