Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 04:52 AM
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