Skip to main content
Known Participant
November 12, 2020
Answered

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

  • November 12, 2020
  • 7 replies
  • 1209 views

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.
Correct answer Nesa Nurani

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
November 12, 2020

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

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

CiaranMHRAuthor
Known Participant
November 12, 2020

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