Trying to enable Antibot with a Webform, and cannot do it
Install Antibot, Turn it on, Configure 1 form ID (contact_site_form), Check Display Form IDs, Go to Webform settings for webform_client_form_257:, and no place to enable Antibot for the form
Here is the url for the form: https://test.mtryrapecrisis.org/contact
Also, turned javaScript off in Firefox, cleared cache, and form still appears
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork antibot-3208301
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
paulocsHi redthruviolet!
I could not reproduce your problem.
Are you sure you are writing the correct webform ID?
I suggest you to enable
Display form IDsin/admin/config/user-interface/antibotand check if you are setting the correct webform id.For example, for the contact form, my webform id is
webform_submission_contact_add_form.Comment #3
anybodyCan't you simply set
webform_client_form_*
as wildcard in admin/config/system/antibot?
I've created an issue fork to add that to the defaults.
Comment #4
anybodyComment #6
gaurav.kapoor commentedHi, @Anybody. There isn't any plan to update 7.x-1.x branch further as of now. Did the suggestion in #2 by @paulocs not work for you? Do you still feel we should add 'webform_client_form_*' to default settings?
If anyone can help with testing and working on this in D7, I will push this to 7.x-1.x.
Comment #7
gaurav.kapoor commentedComment #8
anybodyThank you @gaurav.kapoor,
well the very simple one-line merge request is already here in this issue:
https://git.drupalcode.org/project/antibot/-/merge_requests/4/diffs
If you test it, you can safely commit it, I guess. It makes things a lot easier for non-tech Drupal users.
Comment #9
gaurav.kapoor commentedI also didn't get any issue when enabling Antibot for a particular form using a single form ID or configuring it for all the webforms with 'webform_client_form_*'. Antibot worked fine in both cases.
@Anybody the MR which you have added does add 'webform_client_form_*' to the settings and by default enables it for all the webforms. But the reasons I am not willing to push it to 7.x-1.x are:
1. Users can configure and add webform ID or regex 'webform_client_form_*' if they want to enable Antibot for webforms.
2. I don't want to push anything to the D7 version as we will have to then go for a new release, which might introduce multiple issues. As of now, there is no plan to work on the D7 version.
Marking this as 'Closed (Works as designed)' for now, feel free to reopen the issue if you think we should still keep this open for feedback from other users.