The form marked as 'disabled' when option 'Display form IDs' is enabled and antibot enabled for the form via webform third party settings.

Created on 10 July 2024, about 2 months ago

Problem/Motivation

We have a message "Antibot (webform_submission_contact_node_66_add_form): disabled" but the form is protected with antibot because it enabled in the webform General settings Third party settings section.

From description of the option "Display form IDs" - "... Also displayed will be whether or not Antibot is enabled for each form. ...".
So it confusing.

Steps to reproduce

- Go to "/admin/config/user-interface/antibot" and enable option "Display form IDs".
- Go to webforms "/admin/webform" and create new webform.
- Go to new webform General settings page and check "Protect [Form name] webform with Antibot" at the bottom (Third party settings section), save.
- Go to the form page and see the massage like "Antibot (webform_submission_[your form id]_add_form): disabled" (you should have antibot permissions to see that message).
- Check form code and see <input data-drupal-selector="edit-antibot-key" type="hidden" name="antibot_key" value="11kB-206hV_yBrl**************">

Proposed resolution

Update "Display form IDs" logic to include that case and show correct message to users.

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡¦Ukraine Dishvola

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024