+ Start a Discussion
BHawkBHawk 

apex:pageMessage to display message from text field on an object?

I was hoping to use a visualforce page to display a banner type message at the top of account records, what I have is below:

<apex:page standardController="Account" sidebar="false" showHeader="false" showChat="false"> <apex:pageMessage summary="Testing" severity="warning" strength="3" rendered="{!Account.custom_field_c <> NULL}" /> </apex:page>

But instead of displaying "Testing" I want it to display the text in the custom_field_c. Is that possible?

Thanks for any help! I haven't done anything with apex or visualforce before.
 
Best Answer chosen by BHawk
Saikishore Reddy AengareddySaikishore Reddy Aengareddy
<apex:page standardController="Account" sidebar="false" showHeader="false" showChat="false"> <apex:pageMessage summary="{!Account.custom_field_c}" severity="warning" strength="3" rendered="{!Account.custom_field_c <> NULL}" /> </apex:page>