The confirmation dialog
A feature missing from the standard Salesforce record edit functionality is the ability for the user to confirm that they wish to execute an action. If a user inadvertently clicks on the Cancel button, their work will be discarded.
In this recipe, we will create a Visualforce page that allows a user to create an account record. If the user clicks on a button to save the record or cancel the creation, they will be requested to confirm that they wish to continue with the action.
Getting ready
This recipe makes use of a standard controller, so we only need to create the Visualforce page.
How to do it...
- Navigate to the Visualforce setup page by clicking on Your Name | Setup | Develop | Visualforce Pages.
- Click on the New button. ...
Get Visualforce Development Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.