after entering user-register-form getting Illegal form_id

Comments

nileshyadav326 created an issue. See original summary.

shruti1803’s picture

Component: -- » Captcha API (captcha)
Status: Active » Needs review

Hi nileshyadav,

The form ID (user_register_form) already listed on the configuration page(admin/config/people/captcha). You have to choose only type of captcha(Default, Image or Math) and save.

Thanks

MediaFormat’s picture

Version: 7.x-1.0 » 7.x-1.3
Status: Needs review » Needs work
Issue tags: -javascript error

My theory is that Form_ID are equivalent to the <form id> but that -dashes must be replaced by _underscores.

Ex:
<form id="user-login">
Must be entered as user_login

This should somehow be stated explicitly.

MediaFormat’s picture

Component: Captcha API (captcha) » User interface
Category: Bug report » Support request
Priority: Critical » Normal
Status: Needs work » Needs review

Attempting to add Captcha to the login block, I found that the real FORM_ID is found in a hidden input field of said form.
<input type="hidden" name="form_id" value="user_login_block">

So the value of form_id for the login block is user_login_block

MediaFormat’s picture

Status: Needs review » Closed (works as designed)