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
  • 1 reply
  • 1190 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 has been closed for replies.
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" : "";

1 reply

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!