Hi Everybody,
I've got this CHECKBOX
<CMS_INPUT_CHECKBOX name="cs_checkbox" useLanguages="no">
<CMS_INCLUDE_CONTENT type="entries" table="FS_DATA.industries">
<LABEL lang="*">#row.name</LABEL>
</CMS_INCLUDE_CONTENT>
<LANGINFOS>
<LANGINFO lang="*" label="Industries"/>
</LANGINFOS>
</CMS_INPUT_CHECKBOX>
Now, I want to add a button to select all the options
<FS_BUTTON name="cs_selectAllButton" hidden="no" onClick="script:test_selectallboxes">
<LANGINFOS>
<LANGINFO lang="*" label="Select All" description="Select all options."/>
</LANGINFOS>
</FS_BUTTON>
My question is... how can I choose the cs_checkbox element from the script?
My idea is to implement something similar to this Select CMS_INPUT_CHECKBOX per script but when I try to use that code in the script I'm receiving an error.
Could you help me?
Thank you!!!