cancel
Showing results for 
Search instead for 
Did you mean: 

Disable All member checkbox if any other member selected in checkbox group

former_member261309
Participant
0 Kudos

Hello

We have checkbox group assigned with a datasource and using All Member to display All values so it looks like this :

When we do selection of other members, ALL is still selected and the filtering doesnt take place until we manually go and uncheck ALL, which increases one more extra click for users. We have a clear filter option already written which taken the default ALL selection, but would be better if users select any other member ALL should get deselected automatically.

Any suggestion ?

Thank you

Piyush

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member261309
Participant
0 Kudos

Hi Poovarasan,

Thank you for your response, its still not working. 😞

Any clue?

Piyush

former_member265529
Contributor
0 Kudos

Hi Piyush,

Are you getting any error or simply nothing.

Can you use an alert in design studio in the if class of that code and check if the script is working when you select "All" value?

If it is not working then check value of "All" selection using Alert and use it in if class condition.

Thanks,

Poovarasan

former_member265529
Contributor
0 Kudos

Hi Piyush,

In the if statement and pass null value to remove selections when all is selected and use set selected value to set selection.

if(CHECKBOXGROUP_1.getSelectedValues()[0] == "All")

{

CHECKBOXGROUP_1.setSelectedValues("");

CHECKBOXGROUP_1.setSelectedValues("All");

}


Then set filter it will work.

Thanks,

Poovarasan