hide subcategory option Client script

ST9
Tera Contributor

Hi All

 

I have a requirement that if the Assignment group is "ABC" and category is 'abc' then it should hide few of the subcategories dependent on category.

I have written onChange  of assignment group and category Client script, only assignment group CS is working not the category. Category Client script is working for a few sec but again it is showing all the dependent subcategories.

 

 

9 REPLIES 9

Anubhav24
Mega Sage
Mega Sage

Is your condition "AND" meaning Ag is abc and at the same time category should be abc , in that case you need to write only one CS on AG or Category. Also check if the subcategory field is having dependent values on category.

ST9
Tera Contributor

Yes, its a AND condition. But we have a scenario that if the assignment group 'ABC' was already selected, and after that we want to change the category to 'abc' then one CS was not helping.
   Yes, subcategory field is having dependent values on category

Can you post more details like screenshots and code being used to help us all to analyze and then reply.

Can you please post what you have written