I am encountering an issue in Frappe with a custom Doctype. After performing an action (e.g., clicking the “Fetch Inventory” button), the next tab within the form interface becomes blank. The other sections remain unaffected, but the specific tab does not render any content after the action is executed.
I have attached a screen recording for better understanding of the issue. Here are the steps to reproduce the issue:
- Open the custom Doctype.
- Perform the action (e.g., clicking “Fetch Inventory”).
- Navigate to the next tab.
Preview link :
https://i.imgur.com/3oI31v4.gif
Is there any condition added for “Tab Break”?, like depends on. Or check any df property is executing while submit
I have kept the condition on Tab Break to show on workflow state (Display depends on) . Is there any better way apart from scripting to handle this.
In my use case i want to hide the tab break based on workflow state
Can you attach Screen Shot once here. Because in that video. You are submitting the doctype. At the time workflow getting changed. So your tab will be hidden. Explain what do you want exactly?
There is a tabBreak with label Inventory when the user clicks on submit button there will be a workflow transition happening which changes the workflow state from Inventory Check pending
to
Safety and security check pending
when this happens the Label of tabbreak is showing on the screen but not doc fields
The workflow transiton is happening correctly but docfields inside the tabBreak are not displaying after transition .
The expected flow is to display tabbreaks based on the relevant workflow state where these conditons are defined on display depends on correctly
I think i got it, The fields are empty. After Submitting we cannot edit that fields. So it becomes hidden. Like refer Purchase Invoice. Create purchase invoice without adding any taxes and charges. After submitting it becomes hidden
1. Before clicking the submit button
2. After clicking submit button
3. After reloading the page manually
The expected flow is without manual reload of page the tab Break shows to user
In this case the Submit button is changing the doctype purchase invoice to non editable stage , but in my case i created a workflow for the doctype where Submit
is a value in workflow action master list which i added . This action doesn’t make the document permanently submit
Yeah got it. Can you share me that screen shot of the page once (Blank). Kindly share me the first table of your workflow too.
I think, we added depends on for “Asset Details” Tabe Break Field right. Or we added df property means, please trigger by on_load not refresh
I added the logic on Tab break
not in any script
Ok maybe this is default, I have another suggestion. Just create status field in the doctype and update status field based on workflow_state by update_field_value in workflow. Add condition for status field not workflow_state. Just try this also.
And i tried with my V14 site, there is no issues. Its working fine.
Just create status field in the doctype and update status field based on workflow_state by update_field_value in workflow. Add condition for status field not workflow_state. Just try this also.
I tried this as well still the same i am using Frappe Framework: v15.48.0 (version-15)