Skip to main content
Participant
July 22, 2021
Question

how to get the data from a lsit to another drop list

  • July 22, 2021
  • 1 reply
  • 215 views

I am building a form. 

Like Category form fields/drop list where contains around 10-12 categories. Each category has around 15-20 products. 

 

My aim is to get the drop list when a category. i.e "Jersy" is selected in dropdown 1, and then get the 10 jersey model in dropdown 2. 

 

Mine is Acrobat pro-DC 2020. 

 

Any help would be appreciable. 

 

@10029146

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 22, 2021

The basic code to do it is something like this (as the custom validation script of the first field):

 

if (event.value=="Jersey") this.getField("dropdown 2").setItems(["Jersey model 1", "Jersey model 2", "Jersey model 3"]);