Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Text input option max length?
Author « Topic »  

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 02/17/2020 :  06:03:18  
Hi,

I have set up a text input option with a maximum length of 8 characters. 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! Would there be a way to have the maxlength property of the input field be set instead, so that only the required number of characters can be entered?

Thank you for any suggestions.

Ellen

dbdave
ECT Moderator

USA
10468 Posts

Posted - 02/17/2020 :  09:16:57  
Hi, what we do is use the placeholder there to convey that info.
You could also use the tooltip to explain that.

David

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 02/17/2020 :  10:06:27  
Hi, thanks dbdave. We are using the placeholder text, but the client is keen that the field itself should restrict the number of characters to the maximum set on the text option. It does seem reasonable really, as it's rather irritating to type the message 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 so I was just hoping there was a way to implement that really.
Ellen

Edited by - EllenD on 02/17/2020 10:07:10

dbdave
ECT Moderator

USA
10468 Posts

Posted - 02/17/2020 :  11:24:45  
You could hack the code to make it work, but it may get complicated, and would need to be redone with each update.
I think what you are asking is a good idea and should be added to the suggestion forum.

Thanks,
David

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 02/18/2020 :  02:53:07  
Good idea David, I have added to the suggestions forum https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=112509
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000