You need to sign in to do that
Don't have an account?
Adam Rycroft
Display text along with field if not null in Visualforce
Hi,
I'm struggling to get this to work correctly. I have a VF page rendered as a pdf. If there is a phone number extension, it should include that after the phone number. That part of the formula works fine - what I want it to do is if there is an extension to display 'ext.' before it. How would I add that in?
I'm struggling to get this to work correctly. I have a VF page rendered as a pdf. If there is a phone number extension, it should include that after the phone number. That part of the formula works fine - what I want it to do is if there is an extension to display 'ext.' before it. How would I add that in?
<b>Phone Number:</b> <apex:outputfield value="{!Crisis_Bed_And_Motel_Vouchers__c.Provider_s_Phone_Number__c}"/> Ext.<apex:outputField rendered="{!Crisis_Bed_And_Motel_Vouchers__c.Provider_Phone_Extension__c != NULL}" value="{!Crisis_Bed_And_Motel_Vouchers__c.Provider_Phone_Extension__c}"/><br></br>
All Answers