I have added confirm email field in my contact form. Now I want to validate it. How can I validate this email confirmation field with the actual email field?
Magento 2 – Validate Email Confirmation Field with Actual Email
confirmationemailmagento-2.1magento2validation
Best Answer
On the second reenter email address input your need to add a
paremeter equalTo:'#email'
todata-validate
, Whereemail
is your email address input field's id attribute value.