• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

newuser
#1 Posted : Wednesday, January 3, 2007 4:27:23 PM(UTC)
newuser

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.
bvfrvr
#2 Posted : Wednesday, January 10, 2007 2:13:23 PM(UTC)
bvfrvr

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"
pbannette
#3 Posted : Wednesday, January 10, 2007 8:32:20 PM(UTC)
pbannette

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
Cliff
#4 Posted : Friday, January 12, 2007 9:10:22 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Originally Posted by: "bvfrvr" Go to Quoted Post
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.
CodeSine
#5 Posted : Saturday, January 13, 2007 6:44:55 PM(UTC)
CodeSine

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012