Salesforce
PDII · Question #322
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…
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.
How the community answered
(38 responses)- A3% (1)
- B13% (5)
- C5% (2)
- D79% (30)
Community Discussion
No community discussion yet for this question.