function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Phuc Nguyen 18Phuc Nguyen 18 

Hide error message on component

Hello,
I have a LWC wrapped inside an aura component.  Works great except it flashes a bief error message.  But still saves new record and navigates to new record.  Is there a way to suppress the error message?  Not sure if its in the LWC or aura component though.  Error message references google map api but see this in other org but no error message.  Error message is in a scratch org.
Thanks
P

Best Answer chosen by Phuc Nguyen 18
VinayVinay (Salesforce Developers) 
Hi Phuc,

We cannot remove Lightning:input error message, Review below idea link and vote.

https://trailblazer.salesforce.com/ideaView?id=0873A000000CTZOQA4

However, you can use JS as a workaround.  Below link has workaround using JS.

https://salesforce.stackexchange.com/questions/163861/lightninginput-hide-reset-field-level-error-message-enabled-by-using-showhe

Thanks,
Vinay Kumar