Salesforce
PDII · Question #322
PDII Question #322: Real Exam Question with Answer & Explanation
The correct answer is D. Add JavaScript and HTML to display an error message.. See the full explanation below for the reasoning.
Question
Users report that a button on a custom Lightning web component is not working. However, there are no other details provided. What should the developer use to ensure error messages are properly displayed?
Options
- AAdd the tag to the component.
- BAdd a try-catch block surrounding the DML statement.
- CUse the Database method with allOrNone set to false.
- DAdd JavaScript and HTML to display an error message.
Community Discussion
No community discussion yet for this question.