Shopify themes, liquid, logos, and UX
Hi,
I'm using the Debutify theme and I am on the cart page
I need to make the cart note (where customers enter their username) a required field before they can proceed to checkout.
I tried adding required to the <textarea> and using oninvalid and oninput, but customers can still click checkout without filling it. Is there a native Shopify way to make the cart note truly mandatory on the cart page without custom JavaScript hacks?
below is an image of the result I want.
Any help would be appreciated!
Thanks,
shokhan
Sure, thank you for replying, could you provide more info?
@shokhan - need to go to cart page in theme files, find out the location for cart note and add html tag required at textarea for this note. If you are familiar with coding then you can do it, else if you want then I can check it.
im not very familiar with coding 😔
Yes ofc 7497 is the code
Hi there @shokhan you should check out the self reply marked as a solution in this post here https://community.shopify.com/c/shopify-design/making-note-section-mandatory-cart-attributes-not-wor... and see if it works for you as well.
i found nothing like "novalidate" in my checkout form
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