Activity Forums Salesforce® Discussions How to display an error message checking in salesforce visualforce page?

  • PRANAV

    Member
    September 28, 2016 at 6:03 am

    Hi Mohit,

    You can use these mention below error messages in vf page.

    • ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,'Please enter Account name'));
    • ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'Please enter Account name'));
    • ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'Please enter Account name'));
    • ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,'Please enter Account name'));
    • ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM,'Please enter Account name'));

    Hope this helps you.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos