How can the developer make sure that validation rule violations are displayed?
A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user.
How can the developer make sure that validation rule violations are displayed?
A . Add custom controller attributes to display the message.
B . Include <apex:messages> on the Visualforce page.
C . Use a try/catch with a custom exception class.
D . Perform the DML using the Database.upsert() method
Answer: B
Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_message.htm
Latest PDI Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments