Q: 15
A developer has a Visualforce page and custom controller to save Account records. The developer
wants to display any validation rule violations to the user.
How can the developer make sure that validation rule violations are displayed?
Options
Discussion
C tbh. Similar practice questions all point to adding
<apex:messages> on the page. I'd say go review the official dev guide for more Visualforce error patterns.C imo. Had something like this in a mock before,
<apex:messages> is the key for showing validation errors from the platform directly to the user. The others either need more custom code or don't handle standard validation messages automatically. Anyone disagree with C?Be respectful. No spam.