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
RashaRasha 

How to display a warning message when user tries to change a field value

Hello Dev Community,

I have a requirement to display a warning message when a user tries to change a field value. We don't want to prevent them from saving it, but when the page is in edit mode, and the user tries to change the value of the field (Cost Center), the a warning message pops up to warn the user. Any guidance is pretty much appreictated as I am not a developer.  

Thanks. 
VinayVinay (Salesforce Developers) 
Hi Rasha,

Unfortunately, you cannot throw a popup message on the standard edit page.  You would need to build custom page and then display popup message.

https://www.sfdcstop.com/2020/05/how-to-display-warnings-in-salesforce.html

Thanks,