Select to view content in your preferred language

Set attribute field default as Phone Number

754
4
12-14-2022 06:53 AM
Labels (2)
TKSHEP
by
Frequent Contributor

Is there a way to set a default attribute field to display phone automatically as (123) 456-7890 in portal hosted feature layer?

 

Thanks!

0 Kudos
4 Replies
berniejconnors
Frequent Contributor

@TKSHEP I don't have an answer, but to clarify, do you just want to format the phone number with brackets "()", space " ", and dash "-"?  Or do you want the phone number to be recognized as a phone number on a mobile phone so the user can tap the phone number to activate a call?

Bernie.

0 Kudos
TKSHEP
by
Frequent Contributor

I am looking to show them in brackets automatically, but both would be awesome.

0 Kudos
berniejconnors
Frequent Contributor
It is be very easy to use an Arcade expression to format the phone number with brackets, spaces, and dashes for display in your pop-ups. Have a look at the Arcade docs.
0 Kudos
TonyContreras_Frisco_TX
Frequent Contributor

I'm not sure if this provides the functionality or look that you want, but You can set the Field type to Phone Number within the hosted feature layer page in Portal/AGO. It sounds like it just allows the webmap to suggest useful ways to set up things like pop-ups or other display features within the map viewer.

0 Kudos