Skip to main content
Known Participant
Nov 12, 2020 2:23 PM UTC
Answered

Auto populate one text field with information depending on selection from dropdown?

Hi

 

I hope you can help me I have two fields. The first is called 'Bupa' and it has a Yes or No drop down options. If the user selects Yes I need another text field called 'Informed' to autopopulate with phrase 'Please inform Clare'.

Any suggestions?

Thanks in advance

This topic is closed to new replies. Start a new post to keep the conversation going.
Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
Nov 12, 2020 2:36 PM UTC

In the "Informed" field as custom calculation script use this code:

event.value = this.getField("Bupa").valueAsString == "Yes" ? "Please inform Clare" : "";

7 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
Nov 12, 2020 2:36 PM UTC

In the "Informed" field as custom calculation script use this code:

event.value = this.getField("Bupa").valueAsString == "Yes" ? "Please inform Clare" : "";

Translate
CiaranMHRAuthor
Known Participant
Nov 12, 2020 2:54 PM UTC

That perfect Nesa. Thank you soo much. Have a good day!

Translate