Salesforce Asked by Lanjinest on December 5, 2020
I’m using lwc’s lightning-record-edit-form
component, as we know there is a <lightning-messages>
area to show any error while updating/inserting the record.
However I want to have a custom check the validation of the record and show the lightning-messages when the check is no-good. Is there a way to do so?
for example, if the startDate
is later than the endDate
, I want to show a error-message in the <lightning-messages>
area.
Plz tell me if it’s possible.
Create a validation rule
and the lightning-message
will auto show the validation message.
Correct answer by Nagendra Singh on December 5, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP