Posted: 23 Jan 2021 21:51 EST Last activity: 23 Jan 2021 21:57 EST
How to implement select all when all the individual checkboxes are selected
I have a requirement where a user can select more than one state and/or U.S territories (Total 56). This has been implemented with a repeating dynamic section by fetching all the 56 states and territories into a page list. Also, there is a selectall button above this state list and when a user checks that checkbox, all the states and territories should get selected.
The above requirement has been implemented using a repeating dynamic section for all the 56 values and a checkbox for "selectall" above that list. The problem here is, whenever a user selects all the 56 values individually, "selectall" checkbox is not getting selected and I am not sure how to implement it.
I really appreciate it if any one can throw any ideas or point me in right direction.