Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Apr 22, 2023 Apr 22, 2023

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?

TOPICS
JavaScript , PDF forms
961
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Apr 23, 2023 Apr 23, 2023

Preface your code with this:

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2023 Apr 23, 2023

Preface your code with this:

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2023 Apr 23, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines