I have a 4 status in a workflow, i want to hide Rejected or Cancelled if the status is Approved, How to achive it?
Hello,
You can easily achieve this by setting up your Workflow just like in the screenshot above ![]()
Here’s what to do:
-
Go to Workflow → New (or open your existing one).
-
In the Document Type, select the doctype you want to apply this workflow on — in my example, I used Sales Invoice, but you can pick any doctype you prefer.
-
Under States, add the different statuses you want your document to go through, for example:
-
Pending → Doc Status: 0
-
Rejected → Doc Status: 0
-
Approved → Doc Status: 1
-
Cancelled → Doc Status: 2
-
-
Then, in Transition Rules, define how the states move from one to another, like this:
-
From Pending, Action Approve → Next State Approved
-
From Pending, Action Reject → Next State Rejected
-
From Approved, Action Cancel → Next State Cancelled
-
With this setup, once the document is Approved, the Rejected or Cancelled options will behave exactly as expected, only valid actions for the current state will appear.
You can customize the states, actions, and allowed roles based on your needs and the doctype you’re working with.
Don’t forget to mark the workflow as Active and click Save to apply the changes!
I’m not talking about the workflow itself, I’m talking about the workflow bar ( Design )

