Make field mandatory based on radiobutton selection
I have a group (Group2) of radiobuttons with 3 options.
Option1
Option2
Option3
When Option1 is selected I want field Text14 to be mandatory. When option 2 or 3 are selected it should not be mandatory.
I have tried putting code in mouse Up/Javascript
if (event.target.value == "Yes")
{this.getField("Text14").required = true;}
But it's not working.
What am I doing wrong here?
