cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms - Drop Down list

Former Member
0 Kudos

Hello,

I have two drop down list(s) in my adobe form.

1) Employee Group

2) Employee Subgroup

Employee Subgroup drop down list is populated dynamically depending on Employee Group selected on form.

Now the issue is :

If the current value of EMp Grp = 01 and EMP sub grp = 07

Now if Emp Group is changed to 02, EMP subgroup drop down is again built in backend. So the EMP subgroup gets new set of values BUT with additional row (value = 07) of previus EP subgrp.

So the values are:

81

82

83

07 (This is old value which should not come)

How can i delete this value using script and in which event?

Regards,

Ashish Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Ashish,

On Change event of the EMPgrp Dropdown say DD1 for EMPSubgrp DD2 write the code:

if (DD2.rawValue ne null)

then

DD2.deleteItem(DD2.selectedIndex)

DD2.rawValue = ""

endif

And make sure this script runs before the new values in the DD2 are fetched.

Regards,

Vaibhav

Former Member
0 Kudos

Hi,

By folloeing these steps i am gettign error "The Entered Value Is Not on the List of Valid Values." when the form is loaded.

regards,

Ashish Gupta

Former Member
0 Kudos

This happens since you passed blank value to the drop down and blank value is not there in the

list of values passed from backend. So here's the solution. If you are filling dropdown values

add a blank or space value to the list of valid values always. On refresh of the drop down,

make the employee subgroup value as Space.

Thanks,

Aravind