Skip to main content
3 of 3
Tags belong to tags field, not to title
Mołot
  • 21.9k
  • 8
  • 59
  • 112

How to stop same-state state changes in Workflow state change block?

I am using Workflow with a custom content type. I have the Workflow state transition form as a sidebar on my node view page. I made the workflow states into buttons so that you can choose which state to transition to.

How can I remove buttons that are the same state as the node? For example: If the node is already in Draft state, the Draft button should not be shown. If it's in Declined mode, the Declined button should not be shown.