- My View
Here is my code in Catalog Client script onchange type:
g_form.clearOptions('subcategory'); //build a new list of dependent options
var gp = new GlideRecord('sys_choice');
g_form.addOption('subcategory', gp.value, gp.label);
Subcategory's are working for admin users but not loading for ITIL & End users in Service Portal
You may need to provide read access to end user over sys_choice.
I dont think its about Read access since it is working in CMS view only it is not working in SP not only for end users it is not working for ITIL users as well
We had a similar issue in service portal where we are getting choices from lookup tables. Read access resolved the same.
Oh okay, but here we are using lookup table as incident, do we still need to check with read access ???
But you said script is on record producer and in code you are querying sys_choice table. Can you please explain this in detail?
I didnt written the complete code it was already available in our instance which was built by someone earlier and it is working perfectly fine for all the users later once we started implementing Service Portal since GlideRecord doesnt work i used Call Back function for the existing script.
Please let me know what is stopping other users except Admin to populating the depended values of Category.