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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

2 Different Text Fields filled based on Drop Down List Selection

teddyn12
Level 1
Level 1

Hello,

I'm trying to create a form where a phone number is filled into a text box, and an email address is filled into another text box, based on a selection made from a drop down list. I am using CS3.

Any help would be appreciated. 

1 Accepted Solution
whyisthisme
Correct answer by
Level 7
Level 7

in the exit event of the dropdown put something like (in formcalc):

if ($.rawValue == 1) then

phoneNumber = "12345566"

email = "blah@email.com"

elseif ($.rawValue == 2) then

phoneNumber = "67890"

email = "blah2@email.com"

endif

(make sure you have the "specify item values' box ticked for the dropdown list in object>binding)

View solution in original post

2 Replies
whyisthisme
Correct answer by
Level 7
Level 7

in the exit event of the dropdown put something like (in formcalc):

if ($.rawValue == 1) then

phoneNumber = "12345566"

email = "blah@email.com"

elseif ($.rawValue == 2) then

phoneNumber = "67890"

email = "blah2@email.com"

endif

(make sure you have the "specify item values' box ticked for the dropdown list in object>binding)

View solution in original post

teddyn12
Level 1
Level 1

Thanks so much for your help. That was exactly what I was looking for. Have a great day!!!!