- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 10:44 AM
Hi Team,
Need a script to simply add a number (for example 1) to the beginning of the phone without replacing anything. ISE 2.3 or higher.
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-11-2019 11:33 AM
Hi Jason,
Thanks, my JS "skills" are very basic and I've struggled in the past with some more complex but this one seems straightforward. This is what I came up with based on the previous posts you linked:
<script> $('[id="ui_self_reg_submit_button"]').on('click', function(evt){ var phoneInput = $('#guestUser\\.fieldValues\\.ui_phone_number'); var phoneNumber = phoneInput.val(); phoneInput.val(1 + phoneNumber); }); </script>
I think it probably has some redundant stuff or could be simplified, but I tested and its working fine!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 11:37 AM - edited 04-15-2019 02:46 AM
I think it probably has some redundant stuff or could be simplified, but I tested and its working fine! @Eric Pineda
The script provided in the community page is simple and straight forward as he said. If he still wants to simplify the code he can use the below one where I removed a line and not much changes required.
<script>
$('#ui_self_reg_submit_button').on('click', function(evt){
var phoneInput = $('#guestUser\\.fieldValues\\.ui_phone_number');
phoneInput.val(1 + phoneInput.val());
});
</script>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 10:52 AM
Look at the options under and play with some scripting to make it work for you?
https://community.cisco.com/t5/security-documents/ise-guest-amp-web-authentication/ta-p/3657224#toc-hId-1898236740
I will request one if you can’t ☺
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 11:33 AM
Hi Jason,
Thanks, my JS "skills" are very basic and I've struggled in the past with some more complex but this one seems straightforward. This is what I came up with based on the previous posts you linked:
<script> $('[id="ui_self_reg_submit_button"]').on('click', function(evt){ var phoneInput = $('#guestUser\\.fieldValues\\.ui_phone_number'); var phoneNumber = phoneInput.val(); phoneInput.val(1 + phoneNumber); }); </script>
I think it probably has some redundant stuff or could be simplified, but I tested and its working fine!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 11:37 AM - edited 04-15-2019 02:46 AM
I think it probably has some redundant stuff or could be simplified, but I tested and its working fine! @Eric Pineda
The script provided in the community page is simple and straight forward as he said. If he still wants to simplify the code he can use the below one where I removed a line and not much changes required.
<script>
$('#ui_self_reg_submit_button').on('click', function(evt){
var phoneInput = $('#guestUser\\.fieldValues\\.ui_phone_number');
phoneInput.val(1 + phoneInput.val());
});
</script>
