Forums

Checkboxes Select/Deselect All

mhmdmed 23 Mar, 2012
Hello Sir,

I have 4 check boxes

1- All
2- Food
3- Cars
4- Sports

How can I make the "All" checkbox checks the remaining items (Food, Cars & Sports) at one time, and also deselect everything when I uncheck "All".
GreyHead 23 Mar, 2012
Hi mhmdmed,

You'll need to add a few lines of JavaScript in a Load JS action. Google will probably find you some examples.

Bob
mhmdmed 23 Mar, 2012
I found the code.

but can you please tell me how to luck the JS action when I click on the "All" checkbox?
GreyHead 23 Mar, 2012
Hi mhmdmed,

???

Bob
mhmdmed 23 Mar, 2012
Can you please tell me how to correctly load the JS function and where to put it?

How the system will know when to be executed?
GreyHead 24 Mar, 2012
Hi mhmdmed,

You add your JavaScript into a Load JS action in the On Load event of your form. You will use JavaScript events to trigger the code running at the right time. If you are new to JavaScript you may need to get someone more experienced to help you with this.

Bob
This topic is locked and no more replies can be posted.