I want to input the mobile number in the Text field after saving the record the mobile number should display in (999) 999-9999 format.
I've tried creating a formula field of text and gave the below formula
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE( Phone__c ,
'.', NULL),
' ', NULL),
'-', NULL),
')', NULL),
'(', NULL)
But it doesn't work for me. Can anyone help me doing this?