Add Config Action to enable captcha form elements

Created on 27 November 2024, 5 months ago

Problem/Motivation

Working on the contact for the Drupal CMS and we need to create an action that enables the `captcha` form element.

Proposed resolution

Create a new config action plugin to add the `captcha` form element to webform entities.

Remaining tasks

- [ ] Create the plugin
- [ ] Write the tests.

✨ Feature request
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

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

Merge Requests

Comments & Activities

  • Issue created by @pfrilling
  • Merge request !565Added config action plugin β†’ (Open) created by pfrilling
  • πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH
  • Pipeline finished with Failed
    5 months ago
    Total: 861s
    #352423
  • Pipeline finished with Failed
    5 months ago
    Total: 291s
    #352439
  • Pipeline finished with Failed
    5 months ago
    Total: 393s
    #352449
  • Pipeline finished with Failed
    5 months ago
    Total: 612s
    #352458
  • Pipeline finished with Failed
    5 months ago
    Total: 421s
    #352469
  • Pipeline finished with Failed
    5 months ago
    Total: 419s
    #352495
  • Pipeline finished with Failed
    5 months ago
    Total: 448s
    #352646
  • Pipeline finished with Canceled
    5 months ago
    Total: 98s
    #352649
  • Pipeline finished with Failed
    5 months ago
    Total: 694s
    #352650
  • Pipeline finished with Canceled
    5 months ago
    Total: 324s
    #352677
  • Pipeline finished with Failed
    5 months ago
    Total: 555s
    #352678
  • Pipeline finished with Success
    5 months ago
    Total: 1429s
    #353019
  • πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

    I added the config action that will add a captcha form element to a form if it does not yet exist.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Maybe we need to evolve webform related config actions in a dedicated webform_config_action contrib module so that it evolves faster than the Webform module.

    If the webform_config_action.module gets stable, and development slows down; we could merge it into the webform module.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    I am better understand the importance of the ticket via ✨ Add Config Action to enable captcha form elements Active .

    We are going to have to step back and think about what config actions are required for webforms.

    For example, we probably need a way to add any element to a webform and we can expose \Drupal\webform\Entity\Webform::setElementProperties as a config action method.

    Attached is POC (untested) patch that might be a simpler approach for a Drupal CMS MVP.

    Because config actions are required via Drupal CMS, I am going to mark this a Critical.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Sorry y'all, I missed the latest update on this one. I'd love to have this be an optional thing, but I don't think it's critical for our release, when weighed up against everything else (and, the form to capture inputs isn't actually working yet). I updated the other issue but I'd be fine with the form having the captcha element by default when it's added, as the consensus among folks seemed to be it was better to have it than not.

    I really appreciate the urgency! But would love for everyone to have time and space to figure out config actions for webform, as @jrockowitz already raised. Later on, we can make it super slick as an optional add-on :)

  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

    Adding Recipes initiative tag so we can track and document any config actions created here.

  • Pipeline finished with Failed
    3 months ago
    Total: 909s
    #398887
  • Pipeline finished with Failed
    3 months ago
    Total: 864s
    #398932
  • Pipeline finished with Failed
    3 months ago
    Total: 846s
    #408377
Production build 0.71.5 2024