I want to update the validation message like by default we get This is required field but i want to update like for the firstname i want to fire the First name is required how can i do that?
1 Answer
Just go-to that input field and add a custom attribute "data-msg-required"
data-msg-(validator name), For Ex:
<input name="qty" id="qty" class="input-text" type="text" data-validate='{"required":true}' data-msg-required="Please select size."/>
-
For the firstname how can i do because there is widget call Commented Sep 13, 2019 at 6:23
-
For more info visit this link: that help you. Link - blog.chapagain.com.np/magento2-custom-form-validation Commented Sep 13, 2019 at 6:27