Rank: Member
Joined: 10/22/2006(UTC) Posts: 74
|
Is anyone aware of a means to limit the number of characters permitted when a customer is presented with a text input choice for a product? Even though the admin interface lets you specify the text box size, it doesn't prevent the customer from entering an autobiography.
|
|
|
|
Rank: Member
Joined: 1/10/2007(UTC) Posts: 6
|
hard code it... open the page up in an editor and find the text field. add this to the textbox tag.
maxlength="length in characters"
|
|
|
|
Rank: Member
Joined: 3/25/2006(UTC) Posts: 111
|
Hello,
I need this also, since 140 of my products are personalized with text. I need from 1 to 15 text fields per product. Each text field needs a maximum lenghth. I am also going to use text boxes, but will need fixed number of columns and rows, different for each product. I could specify the maximum characters that could fit, but customers may put in more characters and then the product can't be personalized.
I am planning on having someone make a module. I need to specify the maxlength in the admin at the time the products are configured with the text fields.
It's OK to hard code the maxlength if you are only doing a few fields and if all the fields have the same maxlength.
I think I mentioned to BVC that I would like to see the maxlength specification added as an enhancement some time ago. Not sure if this would happen. Several carts do have the ability to specifiy maxlength of the text fieds as a standard feature.
Bob
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Originally Posted by: "bvfrvr" hard code it... open the page up in an editor and find the text field. add this to the textbox tag.
maxlength="length in characters" I don't know that this is possible since I believe these fields are dynamically generated. |
|
|
|
|
Rank: Member
Joined: 11/18/2003(UTC) Posts: 1,465
|
If the length will be the same for all text boxes then yes you can add this max to the textbox control that BV uses. The textbox is not rendered in code so just change in the page (there is one for Modifiers and Choices).
The exact file location is: BVModules\ProductInputs\Text Input |
TIM
BVC Add-Ons and Development |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.