Why isn't the 'input required class' validating in my cart attribute?

2 0 0

I use the UI element generator to create a code for a short text input into cart attribute:


<p class="cart-attribute__field">
<label for="XXXXX">XXXXXX</label>
<input required class="required" id="XXXXXX" type="text" name="attributes[XXXXXX]" value="{{ cart.attributes["XXXXXX<"] }}">



<input required class="required" >thin doesn't seem to work. Customer can still check out without inputting anyting. What am I missing here?

Replies 2 (2)

Shopify Partner
1484 337 360

Hi @ed762 ,


There are multiple ways the user can checkout. Does your site have a cart drawer? If yes, does the cart drawer have cart attribute?

Buy me a Coffee

Enjoy Shopify for $1. Sign up now

For quick response - Message Me

Ping me at: theycallmemakka@gmail.com

2 0 0

I am not sue what a cart drawer is.  The store uses a very simple and maybe outdated theme from Shopify - 2017 "minimal"