08-14-2018 08:58 PM
Hi ISE experts
First off, I apologies if this topic has been either discussed or created before. This is related to the guide - ISE Guest Self-Registration restrict/validate the person being visited email address. The guide that has been published is sufficient for 1 domain at a time. I've tried to edit the script to allow multiple domains but it seems to be only taking the 1st domain on the list.
Is there any way for the script to capture the others ?
<script>
setTimeout(function(){
$.validator.addMethod("customemailvalidator", function(value, element) {
return /^(\w+\.?)+@abc\.com$/.test( value );
}, 'Please enter a valid email.');
jQuery("[name='guestUser.fieldValues.ui_person_visited']").rules("add",{customemailvalidator:true});
}, 50);
</script>
Solved! Go to Solution.
08-31-2018 08:43 PM
I tested this regex @ https://regex101.com
^(\w+\.?)+@(abc|edf|ghi)\.com$
and it's able to match a@abc.com, b@edf.com, and c@ghi.com
07-16-2019 12:24 PM
07-17-2019 08:03 PM - edited 07-19-2019 02:01 PM
Script customizations are a free best effort service, not a break/fix done by the TAC. I updated the linkage here
check out the option on this page
08-31-2018 08:43 PM
I tested this regex @ https://regex101.com
^(\w+\.?)+@(abc|edf|ghi)\.com$
and it's able to match a@abc.com, b@edf.com, and c@ghi.com
07-16-2019 03:56 AM
Is there a way to protect your Sponsor Portal users/admins from entering the wrong domain when entering their sponsor (person being visited) email address ?
With the above i am able to fix this similar issue for the Self-registration portal but this scripts doesn't work in Sponsor portal.
07-16-2019 12:24 PM
07-17-2019 01:55 AM
07-17-2019 08:03 PM - edited 07-19-2019 02:01 PM
Script customizations are a free best effort service, not a break/fix done by the TAC. I updated the linkage here
check out the option on this page
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide