2 risposte
Hi Patricia Emerson,Visualforce and Classic UI will not perform any formatting when displaying value.You can refer below stackexchange link for the same:https://salesforce.stackexchange.com/questions/283558/apexoutputfield-not-formatting-phone-numbers-in-pdf You can create a new formula field with a Text return type and use below formula:
"(" & LEFT(Phone__c, 3) & ") " & MID(Phone__c, 4, 3) & "-" & RIGHT(Phone__c, 4)
Replace Phone__c with api name of Phone field used in vfpage.
Add this created formula field to your field set and in your Visualforce page, use this formula field from the field set to display the formatted phone number like ((000) 000-0000).Related:https://www.youtube.com/watch?v=VoCaHpRejqcIf this information helps, please mark the answer as best. Thank you