1 Reply · Latest reply on Nov 29, 2017 7:55 AM by Sachin Namjoshi

    Subcategory is not loading in service portal, based on category using Record Producer

      Hello Gurus,

       

      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');  

      gp.addQuery('name', 'incident');  

        gp.addQuery('dependent_value', newValue);  

        gp.addQuery('element', 'subcategory');  

        gp.addQuery('inactive', 'false'); 

       

      gp.query(function(gp) {  

        while(gp.next()) 

        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