How do I make the Name field required in the Contact Form?
Thanks
How do I make the Name field required in the Contact Form?
Thanks
@PLCollection add required to the input field you can find the contact form codes in sections > contact-form.liquid
ex:
Please go to your Online Stores > Themes > Edit code > Sections > Open contact-form.liquid
Find the line that contains id=“ContactForm-name” (around line 37).
Replace this code
With the following code:
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any questions!
This works. Thank you!
You’re welcome @PLCollection
Hey @PLCollection , having issues with making contact page form fields required in Shopify’s Dawn theme? Find the fix in this brief video guide: https://www.youtube.com/watch?v=0LI7iyHABpo