Danish Bhairag2
Tera Sage

Hi @imran rasheed ,

 

Replace your script include with below code & try

 

var UserCriteriaValidator = Class.create();
UserCriteriaValidator.prototype = Object.extendsObject(AbstractAjaxProcessor, {

checkUserMatches: function () {
      var userID = this.getParameter('sysparm_userID');
      var userCriterias = this.getParameter('sysparm_userCriterias');
      // Check if the user matches the given criteria
      var check = sn_uc.UserCriteriaLoader().userMatches(userID, userCriterias);

      // Return the result
      return check;
   },

   type: 'UserCriteriaValidator'
});

 

Thanks,

Danish