Skip to main content
Gaelle32807409ecqy
Participating Frequently
Oct 9, 2023 4:16 PM UTC
Question

Script help Acrobat

Hi, can someone please help?

 

I have a PDF form with actions in fields. One field has drop down options to select, six of them. I'm trying to have each option trigger options for another drop down field. Is this possible? Can someone help me with the script with this? Once I have the script, I think I put it in the validate section.

 

I appreciate any help.

 

G

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Nesa Nurani
Community Expert
Community Expert
Oct 9, 2023 6:36 PM UTC

It's possible, but you need to tell us more information, like field names, selections in dropdown and what exactly you need to happen.

Translate
Gaelle32807409ecqy
Participating Frequently
Oct 9, 2023 8:52 PM UTC

Thank you for your reply Nesa! The field name is " building name" and the selections in the drop drop down are:

Pemberton

Baker Science

Union

McLeod

Library

Smith Nooks

 

Below are the options, I wanted to pop up for each selection

Pemberton - auditorium, conference room

Baker Science - auditorium, classroom

Union - cafeteria, ballroom, conference room, basement

McLeod - Innovation Lab, Lab room

Library - Upstairs area, downstairs area

Smith Nooks - Conference Room

 

and they select the specific room depending on which option they choose. I appreciate your help!

Translate
try67
Community Expert
Community Expert
Oct 9, 2023 10:22 PM UTC

As the custom Validation script of the first field you can use something like this:

 

if (event.value=="Pemberton") this.getField("Dropdown2").setItems(["auditorium", "conference room"]);
else if (event.value=="Baker Science") this.getField("Dropdown2").setItems(["auditorium", "classroom"]);
//etc.
Translate