Problem/Motivation
Require on Publish (ROP) should to participate in conditional_fields so site builders can gate a field's "required on publish" status using #states. Today, ROP doesn't register a state label with Conditional Fields.
Steps to reproduce
- Enable Require on Publish and Conditional Fields.
- Attempt to add a
#statescondition forrequire_on_publishin UI or code. - No “Required on Publish” state appears in Conditional Fields' supported states.
Proposed resolution
Register the “Required on Publish” state via require_on_publish_conditionalFieldsStates_alter() .
Remaining tasks
Add the alter hook
User interface changes
Conditional Fields UI shows an additional state: Required on Publish.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | require_on_publish-add-conditional_fields-support-3554300-2.patch | 913 bytes | jcandan |
Issue fork require_on_publish-3554300
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
jcandan commentedComment #4
jcandan commentedNo longer considering this as blocked by #3554298: Respect Name field “show required markers” and minimum components for ROP visuals.
Comment #5
jcandan commentedComment #9
demonde commentedIn my use case the conditional field reaction can be set up but did not work properly.
Can you tell under which conditions the implementation of this patch was tested?