Checkbox in form

I have a form which has 6 check boxes, one of them is admin. If a user selects admin, the other check boxes should be mark checked and if unchecked all should be marked unchecked. I know it can be done in javascript, but how do I do it in scriptcase. An example would highly appreciated.

Thanks

Still waiting…

Re: Checkbox in form

Hi.
Each checkbox is a different field? or Is it just a field configured as a multi select checkbox?
Regards
JG

Re: Checkbox in form

Different field

Re: Checkbox in form

Ok, then you can create a PHP function. In this function you can review the Admin field data, if this is checked ( IF (admin = ‘Yes’) …) then you can check the others five fields ( field1 = ‘Yes’ … field2 = ‘Yes’, etc), otherwise IF (admin = ‘No’) … then you unchecked the others fiels.
After that, then you create an OnChange event related to Admin field, calling on it the new PHP function.

Regards
JG

Re: Checkbox in form

Is it solved?