On a Panels page, I attempted to setup the following:

  • Workflow Field on a node entity
  • Node Edit Form overridden with Page Manager
  • Using Visibility Rules, show a different field based on the Workflow Field state value.

I encountered two issues which sadly make the visibility rules not work with Workflow Field.

  1. Only a few of the states are shown. I assume, it only shows the states available based on the transition from the Creation state, since the widget is assuming that a new node is being created, even though you are only editing the panel at this point.
  2. When creating the visibility rule and choosing one of the available states, the relevant field is never shown. The field is only shown once the visibility rule is disabled again.

Thanks in advanced for your support. Please let me know if I can provide any other details to help diagnose the issue.

Comments

NWOM created an issue. See original summary.

johnv’s picture

@1. Please check your state transitions. Are you sure the states from 'creation' are set, not from the current state?
@2. I can't hel you with Visibility Rules.

Please check the status of these issues regarding Panels & Workflow:
https://www.drupal.org/project/issues/workflow?text=panels&status=Open&v...

Consider using workflow_fields
You'll need to apply #2148935-31: Make module compatible with workflows defined through "Workflow field" module.

nwom’s picture

Thanks johnv for the response.

1. I'm editing the Node edit form via Panels, so it is not an actual node that is being edited. So normally all States should be shown in this case.

2. I understand that maybe you can't personally help me with Visibility Rules, but the question is if this module supports Panels. If it does, then wouldn't this be a bug? If it doesn't support Panels yet, should we change this to a change request instead?

I am currently using Workflow Fields, and have applied the patch. However, Workflow fields only allows you to differentiate View Node (Viewable), and Edit Node (Editable) separately. This means, if you are trying to conditionally show "View Only" fields on the node edit page, you would need visibility rules.

I hope this makes sense, and thanks again for your support.

johnv’s picture

Category: Bug report » Feature request
delacosta456’s picture

hi this is old but ..

I was facing today Visibility Rules in panel and search up and down resolve this with an alternative solution with two module to install and use in this order :

CTools token entity context to add extra token in format

workflow state (from context)

AND after save move to YOUR PANE to use feature of the :

Panels Substitutions Access TO add a visibility Rule of :

Substitution Match or Empty

Hope it will help

johnv’s picture

Title: Incompatible with Panels Visibility Rules » Panels Visibility Rules not compatible
johnv’s picture

johnv’s picture

Component: Code » Workflow Field API
johnv’s picture

Status: Active » Closed (outdated)

New features for D7 are not processed anymore, (unless a patch is provided)