Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

New Here ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

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. 

 

@atal

 

TOPICS
JavaScript

Views

17

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

LATEST

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"]);

Likes

Translate

Translate

Report

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