Skip to Content
0

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

Dec 22, 2016 at 08:16 PM

176

avatar image
Former Member

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

rja2j.png (3.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Dec 23, 2016 at 06:02 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 05, 2017 at 09:54 AM
0

Hi Poovarasan,

Thank you for your response, its still not working. :(

Any clue?

Piyush

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0