- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 12:36 PM
I would like users to be able to have a way to press on a phone number (or an icon) and have it automatically call the phone number. I have set up the E.164 phone number field, but on pressing the field the system reacts as if the user is editing the field. Does anyone have any suggestions? Thanks for any advice!
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 12:45 PM
You can probably create a UI action and use a "tel" tag.
<a href="tel:1-408-555-5555">1-408-555-5555</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 12:45 PM
You can probably create a UI action and use a "tel" tag.
<a href="tel:1-408-555-5555">1-408-555-5555</a>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 01:07 PM
Since nobody ever really calls themselves, why not set up an ACL to make the field read-only except for admins, "self", and a few select other users? Haven't tried it,but sounds plausible.
Using Access Control Rules - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 01:16 PM
Chuck - Tried that, but unfortunately it didn't work. On press, the system offered to cut, copy, paste the value in the field. The UI didn't recognize the phone number. Thanks for the suggestion, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 02:12 PM
Thanks for the quick response. I think you're close to the answer, but I don't know how to get a UIAction or a URL field to call the html formatted hyperlink.
I'm new to Mobile UI Actions. I've been playing with this awhile using different formats with no luck. I can redirect to a website, but can't trigger the dialer because, I suspect, the system can't interpret the <a>.
//var url = 'http://www.google.com'; //this works
//var url = 'tel:+16175751300'; // does not work
var url = '<a href="tel:+1-303-499-7111">1-303-499-7111</a>'; //does not work
action.setRedirectURL(url);
By the way, I also tried using an HTML field and entering a hyperlink, but that's a no-go because HTML fields do not display on mobile.
Any other suggestions are greatly appreciated.