6 Replies · Latest reply on Nov 28, 2017 4:40 AM by Abdul Azeez

    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