Check all checkboxes within a form

Hi all,

Is it possible to add a button to a checkbox_set form that allows to check all checkboxes?

I've tried adding a new function in BxBaseFormView.php but I haven't got it to work (probably because the approach is completely wrong)

     function toggleAll(&$aInput){
     $aAttrs = $aInput['attrs'];    
 
     for($cnt='1'; $cnt <= count($aInput['values']); $cnt++)
     {
     $aAttrs['checked'][$cnt] = 'checked';
     }
     }

Thank you very much in advance

Quote · 6 Oct 2012

why don't you try jquery?

so much to do....
Quote · 7 Oct 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.