I'm having some trouble using the maxlength validation and I was hoping
someone could give me some help. I have a form with one required field
and one field with a maximum length of 2000 characters. When input
validation fails for both fields I get the following messages (text in
parentheses
Try:
arg0 name=maxlength key=${var:maxlength} resource=false/
The number after arg is the position in the message to replace so you
need a 0.
David
--- Sgarlata Matt [EMAIL PROTECTED] wrote:
I'm having some trouble using the maxlength validation and I was hoping
someone could give me some
Ah-hah, figured it out. This will not work:
arg0 key=label.bin.title/
but this will work:
arg0 key=label.bin.title resource=true/
I will enter this as a bug, because the documentation states that By
default the arg0-arg3 elements will try to look up the key attribute in
the message
--- Sgarlata Matt [EMAIL PROTECTED] wrote:
Ah-hah, figured it out. This will not work:
arg0 key=label.bin.title/
but this will work:
arg0 key=label.bin.title resource=true/
I will enter this as a bug, because the documentation states that By
default the arg0-arg3 elements will try
David Graham wrote:
I'm confused by your setup:
arg0 name=fieldname key=label.bin.title/
Yeah, I was trying random stuff. The final thing that worked was:
field
property=description
depends=maxlength
arg0 key=label.bin.title resource=true/
arg1 name=maxlength key=${var:maxlength}
--- Sgarlata Matt [EMAIL PROTECTED] wrote:
David Graham wrote:
I'm confused by your setup:
arg0 name=fieldname key=label.bin.title/
Yeah, I was trying random stuff. The final thing that worked was:
field
property=description
depends=maxlength
arg0 key=label.bin.title
David Graham wrote:
That's correct, the default is true. Maybe it's broken when you don't
provide a name attribute?
I agree; I will add this info to BugZilla.
Thanks again for all your help.
David
Matt
-
To unsubscribe,
Sgarlata Matt [EMAIL PROTECTED] wrote:
I'm having some trouble using the maxlength validation and I was hoping
someone could give me some help. I have a form with one required field
and one field with a maximum length of 2000 characters. When input
validation fails for both fields I get
8 matches
Mail list logo