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?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
When scripting in dropdowns, I tend to use the exit event.
Because the script is in the object, you will be able to use this.rawValue == "5" in the if statement.
Check that your form is saved as Dynamic XML form in the save as dialog.
Niall
Views
Replies
Total Likes
Hi,
When scripting in dropdowns, I tend to use the exit event.
Because the script is in the object, you will be able to use this.rawValue == "5" in the if statement.
Check that your form is saved as Dynamic XML form in the save as dialog.
Niall
Views
Replies
Total Likes