Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to make text box attribute required and maximum length?

How to make text box attribute required and maximum length?

Views: 6,127

Results 1 to 9 of 9
9 Dec 2007, 11:05 PM
#1
dgeere avatar

dgeere

New Zenner

Join Date:
Dec 2007
Posts:
24
Plugin Contributions:
0

How to make text box attribute required and maximum length?

How can I make a text box attribute be REQUIRED so that they can't just submit it with no content, and also how do I limit the number of characters that they can use? :)

Thanks!

David

15 Dec 2007, 3:11 PM
#2
mtnvision avatar

mtnvision

New Zenner

Join Date:
Dec 2007
Posts:
27
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

I am also interesting in this topic.

18 Dec 2007, 11:35 AM
#3
luxferre avatar

luxferre

New Zenner

Join Date:
Jul 2006
Posts:
7
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

As am I.

My understanding was that the required setting on attributes would prevent empty submittals in text attributes, but not so.

Any input would be greatly appreciated.

15 Nov 2008, 4:36 PM
#4
toussi avatar

toussi

New Zenner

Join Date:
Aug 2008
Posts:
45
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

Luxferre:

As am I.

My understanding was that the required setting on attributes would prevent empty submittals in text attributes, but not so.

Any input would be greatly appreciated.

Has anyone figured this out?

16 Nov 2008, 5:21 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to make text box attribute required and maximum length?

If you edit the Attribute and check the box:

Attribute Required
for Text:
No Yes

Then, go to the Options Name Manager and edit the Option Name and set the rows and size of the text input or text area box that you want to use ...

16 Nov 2008, 10:02 PM
#6
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

You all may be interested in this post, I found that it solved my problem of the text not being required no matter what I did as I have the IH2 mod installed a long time ago....wasn't until I added a text attribute that I ran into this though, and thios post fixed my problem right up :D

16 Nov 2008, 10:12 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to make text box attribute required and maximum length?

Thanks for posting that link to the post on: Required attribute function works no longer so that others can see one of the solutions that may fix problems with Required TEXT Attributes due to the use of an Add-on such as the Image Handler due to a typo ... :smile:

16 Nov 2008, 10:50 PM
#8
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

Most welcome, I hope it helps LOL

20 Mar 2010, 10:10 AM
#9
jhonsmith avatar

jhonsmith

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: How to make text box attribute required and maximum length?

You all may be interested in this post, I found that it solved my problem of the text.Thanks for this post.