Is it possible to remove or hide this standard lightning message?
I have overridden the new button with the aura component and used the record edit form and handling error In the controller, but I don't want to show this error to the user.
auralightning-aura-componentslightning-recordeditform
Best Answer
You need to remove the
<lightning:messages />
from thelightning:recordEditForm
to remove the standard lightning message. Use theonerror
attribute to handle the error.Example
Markup
Controller