How to I make a phone number press to dial on the smartphone interface?

annc
Kilo Contributor

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!

1 ACCEPTED SOLUTION

kenappell
Kilo Guru

You can probably create a UI action and use a "tel" tag.


<a href="tel:1-408-555-5555">1-408-555-5555</a>


View solution in original post

8 REPLIES 8

chrisszabo
ServiceNow Employee
ServiceNow Employee

Geneva moving forward with Connect has interface for do such. Check phone icon example...


Screen Shot 2016-07-11 at 3.41.56 PM.JPG


chrisszabo
ServiceNow Employee
ServiceNow Employee

NOt sure if this gets you closer; but if you look at the following: Setting the glide.phone_number_e164.strict system property to false or adding the pn_strict dictionary attribute allows the phone number input box to display a green line underneath numbers that do not match the territory format listed for the selected territory. In this case, a user can save a phone number in an invalid format, but the field continues to display a warning until the phone number matches the format required by the territory. You can use the   Other / Unknown territory to store otherwise invalid phone numbers.



Reference: Using Phone Number Fields - ServiceNow Wiki


annc
Kilo Contributor

Appreciate the feedback Christopher, but attempts to incorporate the 'strict' system property and then the pn_strict dictionary attribute did not change the mobile behavior on an e.164   phone number field.   I'm still stumped on finding a way to provide press-to-dial on the mobile.


annc
Kilo Contributor

Update:   So far I have been able to determine that if you use the field type "Phone Number" (as opposed to Phone Number E.164) the system will display an icon next to the phone number field which, when pressed, send the number to your dialing function.   This can be seen on sys_user phone fields:   Business Phone, Home Phone, Mobile Phone fields. Problem is that "Phone Number" field is not available for selection.