Skip to main content
Mr. SOTHON
Participant
June 11, 2023
Question

Validation script on dropdown list field depended on other dropdown list

  • June 11, 2023
  • 1 reply
  • 1315 views

Hi, anyone can help me to make this happen? field#1 dropdown list is group like (Fruit) and field#2 dropdown list is type of fruit. I have many pages kind of fruit and I want to select feild#1 dropdown list it show kind of field #2. I tried many time but it seem error while we select group field#1 again it only go to page.

I tried following code from peoeple here in validation field#2 in Run Custom validation script as following: 

if(event.value == "apple") this.pageNum = 1;
else if(event.value == "banana") this.pageNum = 2;

 

any Error in above scrip? Or any suggestion beside make validation script?

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
June 11, 2023

The script is OK. 

Mr. SOTHON
Participant
June 11, 2023

Yep the script is running well if dropdown list field#2 is independent. Any idea make this dependency to dropdown list field#1? I tried make it denpendency but seem not working while I tried to click field#1 it going to page all time. In short, I can't select field#1.

Bernd Alheit
Community Expert
Community Expert
June 11, 2023

What script does you use at field#1?