
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2019 10:39 PM
Hi All,
I AM NO DEVELOPER or CODER.
I am trying to work around a script posted by Jason in Article below to get 2 things done.
Users must input the number in format +614xxxxxxxx
A placeholder in the phone number field: +61400123456
I copy pasted the original script without any modification and it did not affect anything. (Toggle HTML on and Off).
Anything I am missing here.
Appreciate if someone can help here or correct the script for me.
<script>
(function(){
jQuery(document).ready(function() {
setTimeout(function(){
cisco.ise.validation.setPhoneRegex(/^+614[0-9]{8}$/);
cisco.ise.validation.setPhoneNumberMessage("Please provide your phone number in format +614XXXXXXXX");
}, 100);
});
})();
jQuery('#ui_phone_number_label').attr("placeholder", "+61400123456”);
</script>
Thanks
Solved! Go to Solution.
- Labels:
-
Identity Services Engine (ISE)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2021 01:39 AM
I have hit the same, I have duplicated the Customization Portal and replace the Policy Result with Duplicated one and it started to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 08:44 AM
Have you enabled the JavaScript for customization?
- Go to Administration -> System -> Admin Access -> Settings -> Portal Customization
- Select ‘Enable Portal Customization with HTML and JavaScript’ and click Save
Also, you need to click on 'toggle HTML Source' on, paste code, click on 'toggle HTML Source' and then save.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 03:44 PM
Thanks for the quick reply Hosuk.
Step 1 was the issue. for the script not able to work.
Now its a different issue. I decided to just go with the placeholder script (coz its short and sweet) but now the page isn't loading. When I click register (new user), the loading symbol goes on forever but the self-registration page does not load. First I though it was a browser thing maybe, but tried with all browsers, diff OS and machines. same result.
<script>
jQuery('#ui_phone_number_label').attr("placeholder", "+61400123456”);
</script>
Thanks,
Ab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2021 01:39 AM
I have hit the same, I have duplicated the Customization Portal and replace the Policy Result with Duplicated one and it started to work.
