Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

2 Different Text Fields filled based on Drop Down List Selection

Avatar

Former Community Member

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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)

Avatar

Former Community Member

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