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.
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.
03-05-2019 08:44 AM
Have you enabled the JavaScript for customization?
Also, you need to click on 'toggle HTML Source' on, paste code, click on 'toggle HTML Source' and then save.
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
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.
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