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

Dependent/Branching Dropdowns

New Here ,
Oct 24, 2025 Oct 24, 2025

Hello everyone,

So I've created a form with a dropdown that triggers separate, dependent dropdown to show a group of choices based on the selection from the driving dropdown. Everything works perfectly however, some sales reps report that the PDF form malfunctions with dropdowns not updating or freezing up.

 

Below is a snippet of the code looks like in the "Validate" tab's "Run custom validation script" field of the DRIVING dropdowns. The code is much longer than this with other entries, but generally consistent as you see. Again, everything works perfectly even though my form is very dense with many dropdowns and fields referencing others, all stitched together to produce one final summed Part# and Total Price.

I was forced for the moment to "dummy down" my form but it resulted in many more separate fields/dropdowns, and manual entries.

 

if(event.value == '4"x8"x48"')
this.getField("SPC1").setItems([['24" OC','24']]);
else if(event.value == '2"x5"x96"')
this.getField("SPC1").setItems([['24" OC','24'],['32" OC','32']]);
else if(event.value == '2"x5"x72"')
this.getField("SPC1").setItems([['24" OC','24'],['36" OC','36']]);

 

MY QUESTION IS: Could it be compatibility issue on a particular user's system? Where would the troubleshooting begin for something like this? I don't want to instruct users/clients to tamper with their settings, which may create other problems for them...

 

Thanks anyone in advance for some advice!

Rick T.

TOPICS
JavaScript , PDF forms
53
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 ,
Oct 24, 2025 Oct 24, 2025

The first thing to verify is the PDF viewer they are using.  If it's a non-Adobe PDF viewer, including a web browser, the scripts might not be supported and cause issues.

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 ,
Oct 24, 2025 Oct 24, 2025
LATEST

Ok, Thank you.. good points!

 

-Rick T.

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