Salesforce Certified Platform Developer II — Question 73
Choose the correct definition for <apex:message>.
Answer options
- A. Standard Salesforce formatting, throws a specific message on a page
- B. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function
- C. A single message, without formatting, that can be associated with a specific component on the page
- D. No formatting; displays all errors on a page
Correct answer: C
Explanation
<apex:message> is designed to display a single message related to a specific component, which is why option C is correct. Options A and B refer to broader error handling and message formatting, while option D does not capture the specific component association that <apex:message> provides.