Salesforce
PDII · Question #348
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their…
The correct answer is A. External JavaScript library. See the full explanation below for the reasoning.
Question
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record. What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?
Options
- AExternal JavaScript library
- BApex trigger
- CValidation rules
- DTry/catch/finally block
How the community answered
(43 responses)- A81% (35)
- B12% (5)
- C5% (2)
- D2% (1)
Community Discussion
No community discussion yet for this question.