Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 05:16 AM - edited 12-19-2023 05:25 AM
Hi,
Please try below:
var UserCriteriaValidator = Class.create();
UserCriteriaValidator.prototype = Object.extendsObject(AbstractAjaxProcessor, {
checkUserMatches: function () {
var userID = this.getParameter('sysparm_userID');
var userCriterias = [];
userCriterias.push(this.getParameter('sysparm_userCriterias'));
// Check if the user matches the given criteria
var check = new sn_uc.UserCriteriaLoader.userMatches(userID, userCriterias);
// Return the result
return check;
},
type: 'UserCriteriaValidator'
});
Second parameter 'userCriterias' is not string, it should be of type array/list.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande
Thanks
Anil Lande