ExamGecko
Question list
Search
Search

Question 71 - Certified B2B Commerce Developer discussion

Report
Export

Which event should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page?

A.
showMessage
Answers
A.
showMessage
B.
displayPageMessage
Answers
B.
displayPageMessage
C.
displayMessage
Answers
C.
displayMessage
D.
pageMessage
Answers
D.
pageMessage
Suggested answer: D

Explanation:

The event that should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page is pageMessage. This event is triggered by the displayPageMessage method of the CCRZ.util class, which is a utility class that provides various helper methods for common tasks. The event can be used to display a message on the page with a specified type, title, and text. For example,CCRZ.util.displayPageMessage('error', 'Oops!', 'Something went wrong.')will trigger the pageMessage event and display an error message on the page. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Events,Util Class

asked 23/09/2024
Robert L Swafford
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first