Could you reduce your non-working testpage to just one non-working element? I still can't see the issue. The validation seems to work just fine.
Jörn On Wed, Oct 1, 2008 at 11:57 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote: > > Ok, I've further debugged this, trying to find the exact circumstances > in which the validator doesn't work. Now I noticed that the values of > the name and id attributes of input fields aren't the same. I've > created a fixed version: > > http://lab.jeroencoumans.nl/register/index-fixed-name.html > > And now the validator works! So it seems that the name and id > attributes ought to be the same in order for the validator plugin to > work. But Drupal automatically creates the name attribute without the > "edit-" part which it prepends in the id attribute. Is there any way I > can get the validator plugin to work without having to hack the way > Drupal spits out its forms? > > Regards, > Jeroen > > On 1 okt, 15:16, "Jörn Zaefferer" <[EMAIL PROTECTED]> > wrote: >> Could you summarize the problem again? I looked at the testpage and >> couldn't see anything wrong with it. >> >> Jörn >> >> On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote: >> >> > Could it have something to do with the fact that each id starts with >> > "edit-"? When I try it with manually created markup, changing or >> > removing the dashes doesn't help, but removing the "edit-" part does. >> > Is there a workaround possible? >> >> > Thanks, >> > Jeroen >> >> > On 29 sep, 00:06, Jeroen Coumans <[EMAIL PROTECTED]> wrote: >> >> Hi, I've uploaded the form with the generated HTML markup at: >> >> >>http://lab.jeroencoumans.nl/register/ >> >> >> Thanks a lot, >> >> Jeroen >> >> >> On 27 sep, 13:26, "Jörn Zaefferer" <[EMAIL PROTECTED]> >> >> wrote: >> >> >> > Yes, an example would help a lot. >> >> >> > Jörn >> >> >> > On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans >> >> >> > <[EMAIL PROTECTED]> wrote: >> >> >> > > Thanks, I tried that but it doesn't seem to work. Drupal applies the >> >> > > classes "required" to required form fields, and they're picked up >> >> > > correctly. But any rule I add doesn't work at all. Even a single rule >> >> > > to make an extra field required doesn't get picked up. >> >> >> > > Would it help if I setup an example of what I'm trying to achieve? >> >> >> > > Thanks, >> >> > > Jeroen >> >> >> > > On 27 sep, 02:57, "Jörn Zaefferer" <[EMAIL PROTECTED]> >> >> > > wrote: >> >> > >> Yes, details can be found >> >> > >> here:http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl... >> >> >> > >> Jörn >> >> >> > >> On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans <[EMAIL PROTECTED]> >> >> > >> wrote: >> >> >> > >> > Hi, >> >> >> > >> > When trying to use the validator plugin, I get the following error: >> >> >> > >> > missing : after property id >> >> > >> > edit-name: "required", >> >> >> > >> > It seems like it has problems with the "-" that Drupal puts in the >> >> > >> > id's of each form field. Is there a workaround possible? >> >> >> > >> > Thanks, >> >> > >> > Jeroen Coumans >