Skip to main content
Gaelle32807409ecqy
Participating Frequently
October 9, 2023
質問

Script help Acrobat

  • October 9, 2023
  • 返信数 1.
  • 1196 ビュー

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

このトピックへの返信は締め切られました。

返信数 1

Nesa Nurani
Community Expert
Community Expert
October 9, 2023

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

Gaelle32807409ecqy
Participating Frequently
October 9, 2023

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!

try67
Community Expert
Community Expert
October 9, 2023

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.