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
Niraj GananiNiraj Ganani 

success message

I have one custom vf page. And I give save action on save button. but now I want to give success message after inserting record from vf page how can I do that?
Hemant_JainHemant_Jain
See below code for reference:
 
public PageReference save() {
  /* Exisiting Save Code */
ApexPages.AddMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM,'Record Created Successfully.!'));
return null;
}