Required on Workflow State

Created on 11 October 2018, over 6 years ago
Updated 4 March 2024, about 1 year ago

The new core content moderation module is based on the ols workflow module.

This had a some approaches to require fields dependent on a workflow state:

https://www.drupal.org/project/wf_required_fields
https://www.drupal.org/project/wf_required

It would be great to extend this module that fields can be required on certain moderation states.

This might probably be a submodule.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany demonde

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada mandclu

    +1 for this

  • 🇬🇧United Kingdom AaronMcHale Edinburgh, Scotland

    We have a requirement for this, where we have a "Ready to publish" state, just before publish, and so it would be great to be able to select the transition that the check should be done on.

  • 🇬🇧United Kingdom AaronMcHale Edinburgh, Scotland

    Thinking about this more, I think what would work well is to add a checkbox to the workflow transition form which allows setting whether content should be required on transitioning to this stage, something like:

    Label: Enable require on publish checks for this transition
    Description: When enabled, content passing through this transition will have the require on publish validation performed for any fields which have the "Require on publish" option enabled.

    That then gives us the flexibility to have the check performed at multiple transitions, which I think is more robust.

    For example, enabling this for both "Ready to publish" and "Published" would mean that even if content is edited after it has transitioned to the ready to publish state, the validation should still be performed.

Production build 0.71.5 2024