Forums

Form Validation Bug?

danzenie 09 Oct, 2007
Hi,

I have a required validation enabled for the following field in the original form:

<input class="inputbox" maxlength="100" size="40" name="name" type="text">


The form does not display the required message if the field is left blank.

I rearrange to the following:
<input name="name" class="inputbox" maxlength="100" size="40" type="text">


And the validation works after simply switching the name. Any comments?
GreyHead 10 Oct, 2007
Hi danzenie,

The validation uses the 'class' attribute so my guess is that the new one is written where the 'name' attribute is so that in the first case it's after your 'class="inputbox" and isn't found.

Best not to use classes if you are using validation with the current release, in a future release Max may find the exisitng class and re-write it but that doesn't happen now.

Bob
danzenie 10 Oct, 2007
Very good. Thanks
This topic is locked and no more replies can be posted.