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

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
7722 678 1627

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.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


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

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


LetsGetDigital
Shopify Partner
56 0 57

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)