Skip to main content
Known Participant
Apr 11, 2020 12:33 PM UTC
Answered

module change values

Good afternoon to everybody.

i'm trying to find out how to solve a problem

i've a form with several dropdownlist for clothes,and the point is :

if in the first dropdown list  (gender) you choose  if you choose female,the second one (size) should have XS,S,L. on the contrary if you choose male,the second one (size) should have these values R,L,XL,XXL

and a third one (skirt size) should be not visibile.

i know (thanks to this forum) how to make invisible a module,but how i can change its values ???

thanks to all.

fabio

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Apr 12, 2020 8:53 AM UTC

Short answer, like this:

this.getField("Size").setItems(["XS", "S", "L"]);

Long answer, read Thom's tutorial.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Apr 12, 2020 8:53 AM UTC

Short answer, like this:

this.getField("Size").setItems(["XS", "S", "L"]);

Long answer, read Thom's tutorial.

Translate
Thom Parker
Community Expert
Community Expert
Apr 11, 2020 5:03 PM UTC

It sounds like you want to change dropdown list entries based on a selection on another dropdown.

Here is an article on exactly this topic:

https://acrobatusers.com/tutorials/js_list_combo_livecycle/

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often