Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

If statement for drop down

Avatar

Avatar
Level 1
Catherine_Turne
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Catherine_Turne
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
Catherine_Turne
Level 1

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

Avatar

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Thomas_McConnac
Level 4

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