How to make an added note a required field on Shopify?

mj246
Visitor
2 0 0

I want customers to enter a note before checking out at our store. I have the note customized but want it to be/say "required field" before they check out. How can I accomplish this?

Replies 2 (2)

PaulNewton
Shopify Partner
6274 572 1310

Add the required attribute to the html input.

Thought without also writing validation rules this can just mean people have to enter a single character to proceed.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


LetsGetDigital
Shopify Partner
37 0 48

Screenshot 2024-02-13 at 10.29.23.pngsimply add 'required' in the textarea tag.

e.g. <textarea required class="text-area field__input" name="note" form="cart" id="Cart-note" placeholder="{{ 'sections.cart.note' | t }}" >{{ cart.note }}</textarea>

Let's Get Digital (dot net)