Need help in overriding dependent functionality

bharathsnow820
Kilo Contributor

Hello All, I am facing some issue with dependent values.Please suggest how to override.

Below is my scenario: I have one domain "A" .In that let's say 5 companies are there.In the incident form,as per the company basis,the category field is populating the choices.Also,category and subcategory is dependent and it is set in the dictionary. Now I have some specific choices(let's say 10) belongs to "one company only" should be visible in subcategory field.For other companies those 10 choices should not be visible.

Now the problem is,if I put dependent to these 10 choices,to my categories(choices)then it will reflect to all the companies in the domain. Please suggest how to achieve this.Is this possible when dependent of subcategory chosen as category?

Thanks in advance

7 REPLIES 7

bharathsnow820
Kilo Contributor

Hello All,



Anyone can help me with this?


nitish99
Tera Guru

Hi Bharath,



You could write an onChange CS to check the Logged In User's Company and based on that add or remove choices in the Sub-category.


Hi Nitish,



Yes.I have tried that.But as the "dependent" checkbox is enabled,the subcategory choices are working based on category field.


Hey Bharath,



Could you share the script code?