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
cyrilvercyrilver 

Prompt message before save

Hi,

 

I need to control something before saving a record.

If this control is false, I need to prompt a message to the user to ask him if he wants to continue the save operation.

 

I know that I can't do that with trigger so I have developed a VisualForce page/Apex Controller but I can't override the standard "Save" button.

 

Any idea ?

 

Regards,

Cyril

bob_buzzardbob_buzzard

You don't override the save button - you override the new/edit/clone etc buttons so that the user ends up on your page, and thus you have control when the record is saved.

cyrilvercyrilver

Thank you for this answer. I understand but in this case i can't use "inline" editing, no ?

 

Regards,

Cyril

bob_buzzardbob_buzzard

That's the trade off I've encountered, yes.  

cyrilvercyrilver

Yes and in this case you need to create a visualforce page with all the record field and to maintain it, just for a control.

I will try to find another solution.

 

Best regards, 

Cyril