Dynamic select radio

asked 2016-07-08 22:25:27 +0800

HiteshR gravatar image HiteshR
1 2


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

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2016-07-08 22:25:27 +0800

Seen: 24 times

Last updated: Jul 08 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More