Srinivas Bonthu (SRINIVAS BONTHU)
Unitedhealth Group
Unitedhealth Group
SRINIVAS BONTHU Member since 2012 12 posts
Unitedhealth Group
Posted: January 23, 2021
Last activity: January 23, 2021
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

Hi All,

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.

Pega Platform 8.4.2 User Experience Healthcare and Life Sciences