You need to sign in to do that
Don't have an account?
Bob_z
visualforce mobile phone from contact not displaying correctly
I have a visualforce page with contct information such email and mobile phone number. The field is a standard phone numbe rfield on the Contact object but when it is display on my VF page it loses its format. I'm not sure what i can do to correct the rendering so it shows up on my the account object with the correct format. Any help would be greatly appreciated. My code is below.
Custom controller:
<apex:page standardController="Account" extensions="SiteServicePartnerExtController" > <apex:pageBlock title="My Content"> <value="{!sspList}" var="item"> <apex:column value="{!item.Service_Partner__c}"/> <apex:column value="{!item.Contracted_Services__c}"/> <apex:column value="{!item.Primary_Field_Contact__c}"/> <apex:column value="{!item.Primary_Field_Mobile__c}"/> <apex:column value="{!item.Primary_Field_Email__c}"/> <apex:column value="{!item.Contracted_Services__c}"/> <apex:column value="{!item.Secondary_Field_Contact__c}"/> <apex:column value="{!item.Secondary_Field_Mobile__c}"/> <apex:column value="{!item.Secondary_Field_Email__c}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
Custom controller:
Public Class SiteServicePartnerExtController{ private Account acc; public List<Site_Service_Partner__c> sspList {get;set;} public SiteServicePartnerExtController(ApexPages.StandardController sp){ acc = (Account)sp.getRecord(); sspList = new List<Site_Service_Partner__c>(); sspList = [SELECT Id,Name,Site_Account__c,Primary_Field_Contact__c,Service_Partner__c,Primary_Field_Email__c,Primary_Field_Mobile__c,Service_Partner_Site_Status__c, Contracted_Services__c,Secondary_Field_Contact__c,Secondary_Field_Email__c,Secondary_Field_Mobile__c FROM Site_Service_Partner__c WHERE Site_Account__c =: acc.Id]; Set<Id> bidId = new Set<Id>(); for(Site_Service_Partner__c bs:sspList){ bidId.add(bs.Id); } } }