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
mahimahi 

exit without saving

hi all,
 
can user be restricted from exiting edit page without saving?
 
means if user clicks on any other tab or link or button on page , an error message should appear.
 
thanks,
mahi
Anand SinghAnand Singh

Hi Mahi,

This functionality can be achieved using Custom s-control, which will include client validation in Javascript.

However, it is important to know on which object are you intending to implement this restriction?

Thanks,

Anand