Drupal generates input fields with an id like "edit-profile-name". The jQuery validator plugin seems to ignore those fields completely, at least on the form at http://lab.jeroencoumans.nl/register/ (which is the generated HTML from a custom Drupal registration form). Quoting the id when referencing them for custom rules or messages doesn't help.
Thanks, 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