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
Naveen Kumar 964Naveen Kumar 964 

validation in LWC

I have lightning input type is string if it is more than 10 should show an error at input level when I moved the cursor to other field please suggest me on this 
 <lightning-input type="text" label="Enter some text" max-length=10
             message-when-too-long="Max 10 characters allowed" ></lightning-input>
VinayVinay (Salesforce Developers) 
Hi Naveen,

Check below similar reference that can help you.

https://salesforce.stackexchange.com/questions/160160/show-custom-error-on-lightninginput

Thanks,