on 06-27-2011 6:21 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.