Why is my maxlength code for customer input not working?

Hi,

I have a store that collects information from the customer when placing their order as we create customised gifts. I had previously the following code so the customer could only enter a limited number of characters, but now it does not seem to be working. It allows over the max number of character to be typed and added to cart, where I would like there to be an error message that does not allow over the max number of character. Can anyone help me to solve what the issue might be here please?

Custom Name (One Name only)

Page where this particular code is being used: is: https://www.bysolunacreations.com/collections/mugs/products/personalised-name-mug

Thank you so much in advance!

Take a look at your code again. Do you spot the error?

It’s easy to miss!

You have:

maxlength "50"

when it should be:

maxlength="50"
1 Like

Ahh hate when its so obvious and eludes me! Thank you so much!