Skip to main content
Participant
April 23, 2023
Answered

Populate text field from response in Dropdown AND allow user to enter custom text

  • April 23, 2023
  • 1 reply
  • 1036 views

I have a form set up to populate TextA from Dropdown1. I have export values set. That part works great. I have "Allow user to enter custom text" checked, and it doesn't work. The export value overrides. At Custom calculation script, I entered: event.value=this.getField("Dropdown1").value;

 

I'm using Version 2023.001.20064. Does anyone know of a fix?

This topic has been closed for replies.
Correct answer try67

Preface your code with this:

if (event.source && event.source.name=="Dropdown1")

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 23, 2023

Preface your code with this:

if (event.source && event.source.name=="Dropdown1")

Participant
April 23, 2023

Thank you for the response! This extra lines works perfectly.