I have a problem: how do I create a search box in a list? As you know, when creating a workflow for a doctype, by default there will be a hidden field added, workflow_state. So now how can I create a search box for this field without having to use “Filters” (Because in some cases I will hide it)
Hi
To add the workflow state as standard filter, customize the doctype and go to the workflow state field and enable the Is Standard Filter
Thank You
I don’t have any specific fields to display for the workflow. Because this field is created when I create the workflow?
Yeah go to List View of the document that you want the workflow state filter and customize make it as standard filter
Impossible. Workflow_state in the current doctype is not a display field like the fields you create in customize. To put it simply, you have a new doctype with two fields: name and age, then you create a workflow (in the workflow list). At this point it will create a workflow_state field, however this field is not a visible field, it is hidden and can only be found in the database structure. So now how to display this field as customized fields?
When you enable a workflow for any doctype, it creates a custom field called workflow_state
. This field will appear in the customize form but not directly in the doctype. You need to set the logic when creating the workflow to ensure the field is set according to the scenario needed. In some cases, you may also need to override certain methods to achieve this.