Hello,
I have a drop down box with 5 options. 1)Self 2)Spouse 3)Parent/Guardian 4)Power of Attorney 5)Other. I have specified the item values, so that each option has a number. When the user chooses option 5 I would like another field to appear (which is currently hidden). This is the script I have used, which is not working:
Under the change event:
if(this.rawValue == "5"
{formcompletedby.specifyother.presence = "visible";
}else{
formcompletedby.specifyother.presence = "hidden";}
Under the click event:
if(relationship.rawValue == "5")
{formcompletedby.specifyother.presence = "visible";
formcompletedby.specifyother.mandatory = "error";
}else{
formcompletedby.specifyother.presence = "hidden";
formcompletedby.specifyother.mandatory = "disabled"
Can anyone offer any suggestions? Or is it even possible to do this?