Timeline for Is there a way to invoke Salesforce's phone number formatter on a given string?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 6, 2020 at 16:45 | vote | accept | Robert Hyatt | ||
May 5, 2020 at 23:50 | answer | added | cropredy | timeline score: 3 | |
May 5, 2020 at 22:37 | comment | added | sfdcfox♦ | The format function is baked in to the UI elements, not the API or backend (you can prove this by using the data loader to insert records). You would definitely need to write your own formatter if you were interested in having one available. You can see the rules for number formatting in the Help; it's actually very limited; only for US and Canada, and only for 10-digit numbers and 1+10 digits. | |
May 5, 2020 at 21:48 | comment | added | Phil W | I guess it depends on the context where you want to do this. There are wheezes where you perform in-Apex invocation of Visualforce elements, such as outputText and others to get stuff formatted, but it must be invoked in Apex in the context of a VF page... | |
May 5, 2020 at 21:23 | comment | added | Robert Hyatt | I guessed that may be the case by the lack of any evidence of it being available on forums and such, but I figured I would ask and see if someone could surprise me. | |
May 5, 2020 at 21:19 | comment | added | Adrian Larson♦ | Don't know if you'd be able to find a reference or prove it but 90% sure the answer is no. | |
May 5, 2020 at 21:10 | history | asked | Robert Hyatt | CC BY-SA 4.0 |