I want to set hidden checkboxes with a FS_Button.
It works fine, if the boxes are not hidden (hidden="no"). But if they are hidden, the changes aren't stored
//get selected gui value
selectedValuesNew = formData.get(null,"cs_target").get(); //set
// Update selected targets
HashSet mappedTargetsNew = new HashSet();
for(value:selectedValuesNew){
mappedTargetsNew.add(optionModel.getOption(value.toString()));
}
if(mappedTargetsNew != null)
targets_checkboxes.set(mappedTargetsNew);
<FS_BUTTON
name="fs_targetbutton"
hFill="no"
noBreak="no"
onClick="script:news_target_picker"
style="button"
useLanguages="no">
<LANGINFOS>
<LANGINFO lang="*" label="Set targets" description="TEXT"/>
<LANGINFO lang="DE" label="Ziele setzen" description="TEXT"/>
</LANGINFOS>
<PARAMS>
<PARAM name="targets_checkboxes">#field.cs_targetmapping</PARAM>
</PARAMS>
</FS_BUTTON>
Any ideas? thx