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
Suresh Kumar 34Suresh Kumar 34 

Data not modified message

Hi Guys,

I have an requirement that i have to display message "Data not modifed" in vf page.After editing the record in vf page if data was not changed message should display after clicking save button.

Please help me out from this.
UC InnovationUC Innovation
You would need to compare Trigger.Old and Trigger.New (or Trigger.OldMap and Trigger.NewMap) and check if there's any differences.  Here's a couple of links that might help:

http://salesforce.stackexchange.com/questions/40112/how-to-compare-the-old-and-new-values-in-a-trigger-for-multiple-fields
http://www.sfdc99.com/2014/02/25/comparing-old-and-new-values-in-a-trigger/