Making Standard Studio Theme Contact Form Fields Compulsory

Hello, I’m trying to make more than just the email address field compulsory on the standard contact form which came with the Studio template. I’d like to collect name and comment as compulsory fields. See the page here: https://west-end-works.com/pages/contact

I’m non-technical sorry but I have found this extract of code in contact-form.liquid:

value=“{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}”
aria-required=“true”

Do you know what information I need to input here so that it isn’t just the email address which is a “required” field? Or am I in completely the wrong place anyway and need to do something else/look somewhere else?

Many thanks :slightly_smiling_face:

Hi @West-End-Works ,

This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Section->/contact-form.liquid->use the “required” attribute for the input you want:

I hope it would help you
Best regards,

Richard | PageFly