Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
after entering user-register-form getting Illegal form_id
after entering user-register-form getting Illegal form_id
Comments
Comment #2
shruti1803 CreditAttribution: shruti1803 at Iksula commentedHi 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
Comment #3
MediaFormat CreditAttribution: MediaFormat commentedMy 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.
Comment #4
MediaFormat CreditAttribution: MediaFormat commentedAttempting 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 isuser_login_block
Comment #5
MediaFormat CreditAttribution: MediaFormat commented