-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I am trying to use dynamic radio select base on binding field.
<radiogroup id="radioGroup"> <attribute name="onCheck"> if(self.selectedItem.label.equals("Link")){ questionlink.setVisible(true); questionlink.setConstraint("no empty:please provide link"); questionattachment.setVisible(false); } else { questionlink.setVisible(false); questionlink.clearErrorMessage(); questionlink.setConstraint(null); questionattachment.setVisible(true); } </attribute> <radio id="linkRadio" label="Link" selected="@bind(vm.isLink)"/> <radio id="documentRadio" label="Document" selected="@bind(!vm.isLink)"/> </radiogroup> <button id="questionattachment"/> <textbox id="questionlink"/>
based on "isLink" I am deciding to select or not select radio. But when I select another radio button say "documentRadio" which is not select at load time then it is providing me below error.
"Illegal Syntax for Set Operation"
Can anyone please help me?
Thanks, Hitesh
Asked: 2016-07-08 22:25:27 +0800
Seen: 24 times
Last updated: Jul 08 '16
search button using validation
my login/index zul page is loading twice, where as i am only calling it once
Databinding and auto-complete on combobox
Multiple selection using ListModelMap<Key, Obj>
Notify Form of property change
How to handle lists and complex types with form?
multiple checkboxes in a row of listbox