Shopify themes, liquid, logos, and UX
Hi all,
I've been trying to find a way to make my custom form have a new compulsory field. Can't find anything online on how to do it!
Any help would be greatly appreciated!
Screenshot of form code:
Hi there,
You may just add the "required" attribute on the inputs you want to be compulsory. It's simple, check out this doc to have a few examples.
For instance:
<div class="input—row">
<label for="contactFormJCB">JCB VIN number:</label>
<input type="text" id="contactFormJCB" name="[JCB serial number]" required />
</div>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025