The form ID is: feedback-form

The CAPTCHA point administration gives ERROR:

Validation error, please try again. If this error persists, please contact the site administrator.

It may be related to the validation used in CAPTCHA:

#240088: Illegal form_id when assigning a CAPTCHA to a form generated by Webform module

Note CAPTCHA used to not seem to handle the '-' hiphen, but only underscore:

"CAPTCHA module validates Form IDs using /^[a-z_]+$/."

Has anybody combined Feedback2 with CAPTCHA ok ?

Thanks for advice, Webel

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

I believe the proper form id is feedback_form (note the underscore). Please report back if this fixes this issue.

However, be warned that form validation in Feedback does not work properly yet - see #305744: Return validation error (use AJAX framework).

sun’s picture

Status: Postponed (maintainer needs more info) » Fixed
webel’s picture

Copied from the HTML:

<form id="feedback-form" class="feedback-form" method="post" accept-charset="UTF-8" action="/drupal/admin/user/captcha/captcha/captcha_point">

And feedback_form (with underscore) fails anyway:

At admin/user/captcha/captcha/captcha_point:

Validation error, please try again. If this error persists, please contact the site administrator

sun’s picture

I am pretty sure that you need to enter the internal form id, and not the CSS id that is output in the resulting markup.

For the second issue you raised in the last follow-up, please consult CAPTCHA's issue queue and support resources, because that has nothing to do with Feedback module.

webel’s picture

Hi,

> "internal form id"
Thanks for pointing out the distinction.

I looked in the code, and am taking this as the internal drupal form id

feedback2.module: 

$block['content'] = drupal_get_form('feedback_form');

> For the second issue you raised in the last follow-up, please consult CAPTCHA's issue queue and support resources
Will do.

webel’s picture

Code snippet lost on submit:

68:        $block['content'] = drupal_get_form('feedback_form');
webel’s picture

Status: Fixed » Closed (fixed)