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?
A. External JavaScript library
B. Apex trigger
C. Validation rules
D. Try/catch/finally block
Suggest answer: A
Reference:
No comments:
Please share to make the community better.