Random/unexpected behavior of customized subcategory2 field

vaishnavi g
Tera Contributor

On Incident form we have 5 field category , subcategory1, subcategory2 ,subcategory3 and subcategory4.

except subcategory 3 other subcategories choice have dependent value.

So we are adding the choices of subcategory3 using onchange client script[Onchange  on subcategory2 field].

but we got an issue that script is working for some value of subcategory2 and those values are not specific.

e.g if subcategory 2 have 1.ATLAS--> subcategory3's values showing

                                            2.FJP  -->subcategory 3's value are not showing..

but after some time if check for the same value of subcategory2 it will showing subcategory3's values. again after we checking it may seeing for any one of it.

below attached is client script we apply on subcategory 2 field

2 REPLIES 2

Rajesh Chopade1
Mega Sage

Hi @vaishnavi g 

 

Looks you missed to add 'script include' screen shot here.

But as per the shared images I am able to see, from your client script you are passing variable 'u_subcategory_3' instead of 'u_subcategory_2'.

ajax3.addParm(‘sysparm_subcategory3’,’u_subcategory_3); // parameter
// looks here you should provide u_subcategory_2 instead of 'u_subcategory_3'

Please verify once and still issue not resolved then provide your 'script include' screen shot here.

 

I hope my answer helps you to resolve your issue if yes, mark my answer correct & helpful.

THANK YOU

rajesh chopade

Hello Sir @Rajesh Chopade1 

 

Thank you for your response.

Actually I had pass the 'subcategory_3' because it access in script include and collect the value of subcategory3  in array which have hint 'Uhri Option' and then added in 'subcategory 3' option.

We have write onchange client on 'subcategory2' field