Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

On change client script not working

jack33
Tera Expert

Hi All,

 

I have 2 fields on form 'Field 1' and 'Field 2'. based on these two fields I am adding option to 'Field 3'.

If 'Field 1' is selected showing option 'abc' in Field 3 drop down with currently available choices. And if 'Field 2' selected showing 'xyz'. For this created 2 on change client script for 'Field 1' an 'Field 2' separately

which is working fine.

 

Now the issue is, if I am changing any field other than 'Field 1' and 'Field 2' both 'abc' and 'xyz' become visible in 'Field 3' dropdown.

 

Please let me know is the any way with which I can control this. Thank you in Advance

5 REPLIES 5

No Field 4 client script not setting any value on Field 1 and 2. 

When I change Field 4 value all value become visible which i am hiding with client script written on Field 1 and 2.