Highlighted

If statement for drop down

Catherine_Turne

03-12-2008

When a user selects "Indiana" from my dropdown box, an informational text box (Indiana Former Employer Information) needs to change from optional to required.



I'm not familiar with scripting and don't know how to write this. I have part of it, but cannot figure out how to make the text field required. Suggestions?



Thanks,

--cat

Replies

Thomas_McConnac

04-12-2008

In the change event put this (changed to suit your fields):



if (xfa.event.newText == "Indiana")

{

Form.Field.mandatory = "error";

}

else

{

Form.Field.mandatory = "disabled";

}



Hope this helps,



Tom