I installed and tested the 7.x-1.x branch of this module. It works like a champ if you enable it on all forms however when you configure the module to only apply validation on the listed form id's it fails to work as expected. In my case I want to use the module to only validate the comment_form so I can display error handling in a colorbox without having to refresh the page. I am using underscores in my form id's just as if I wanted to perform a hook_form_FORMID_alter() however I also tried with dashes to no avail.

Has anyone else experienced this issue? It's also good to note I had the same issue on the 7.x-2.x branch of this module as well.

Thanks!

Comments

doostinharrell created an issue.

drupal-son’s picture

Hi, I'm having exactly the same error, both 1.x and 2.x branches.

If the "Validate all forms" option is selected, it works as expected on all forms, but, if "Only validate forms listed below" is selected and form IDs are defined they won't work.

I tried all combination of form IDs with no luck:
comment_form
comment_form__2
comment-form
comment-form--2
comment-form__2
comment_form--2

This seems to be a very basic feature, I refuse to think the module has a bug with it, I must be doing something wrong but I don't see what.

Did you resolve the issue?

Thanks.

drupal-son’s picture

Hi,

There is more ...

Seems to happen only with Comment Forms, not for other kinds of forms.
Works for all forms except comments.