function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vishwa attikerivishwa attikeri 

Error message in standard Page layoout

Hi,

 

How to display Controller Error message in standard page layout 

for ex :

if(mapdata.get(cc.id) == Null || mapdata.get(cc.id) == 0)
{
 cc.field__c.addError('Error message here');
}

 

i know it can be possible by trigger but i want it from controller please any one can help 

 

Thanks

sivaextsivaext

Hi

 

using <apex:pageMessages> you can display controller error message on standard page layout

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pageMessage.htm

HariPHariP

Hi,

 

How can I display an error message on standard layout, not VF page?

 

Thanks

Hari

SudhaVishwakarmaSudhaVishwakarma
Hi Hari, did you get answer to this question?