Posted - 02/18/2020 : 02:45:43
I have set up a text input option with a maximum length of 25 characters. However, it allows any number of characters to be input, only when adding the product to cart a message then complains if the text is too long. This seems rather unfriendly! I think that the maxlength property of the input field should be used instead, so that only the required number of characters can be entered. Looking at the code, it seems that maxlength is always set to 255, then the
I am aware of the placeholder & tooltip text, but feel that the field itself should restrict the number of characters to the maximum set on the text option. It is rather irritating to type the text and then be told afterwards (via the alert, when adding to cart) that it is too long. When there is a longer message like 25 characters, as you type it is not that easy to keep track of how many have been used. The MaxLength property of the input field would seem the ideal solution, would it be possible to implement that please? (for both input and textarea types)
Thank you Ellen
|