Problem/Motivation

The webform entity reference field type has open / close / schedule override feature, but that's not true for webform blocks. Is there a reason why the same level of functionality isn't part of the webform block plugin?

Steps to reproduce

Add a webform block to a page via Layout Builder -- notice there is not an option to open / close / schedule it!

Proposed resolution

Add optional open / close / schedule settings to webform blocks to parallel the functionality that already exists in the field type plugin.

Remaining tasks

  1. Open a pull request
  2. Review
  3. Commit 🙏

User interface changes

Three new options would appear in the webform block UI, "Open", "Close", and "Schedule".

API changes

None

Data model changes

New settings in the block.settings.webform_block configuration schema.

Issue fork webform-3506838

Command icon 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

luke.leber created an issue. See original summary.

luke.leber’s picture

Assigned: Unassigned » luke.leber

I plan on opening a pull request this weekend at some point, so self-assigning.

luke.leber changed the visibility of the branch 3506838-consider-adding-scheduling to hidden.

luke.leber changed the visibility of the branch 3506838-consider-adding-scheduling to active.

jrockowitz’s picture

I think all new functionality should be handled in dedicated contributed module like a webform_block_advanced.module which could extend or replace the webform block plugin.

jrockowitz’s picture

Status: Active » Closed (won't fix)
jrockowitz’s picture