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

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

ed762
Visitor
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<"] }}">
</p

 

But 

<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)

theycallmemakka
Shopify Partner
1803 437 468

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?

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

ed762
Visitor
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"