Consider a default Frappe docType. The layout on screen of the data is not changeable. I…
- User
Consider a default Frappe docType. The layout on screen of the data is not changeable. I would like to add an extra layer, so I can drag and drop the layout of a docType.
- Assistant
To achieve this, you can create a custom Web Form or a custom List View for the Frappe DocType, which will allow you to customize the layout of the data. Here's a step-by-step guide on how to create a custom Web Form:
- Install the Web Form DocType if it's not already installed:
codefrappe.pages['install'].add_app('frappe.web_form')- Create a new Web Form:
- Go to the Web Form List (
Web Form>List) - Click on the
Newbutton to create a new Web Form - Select the DocType you want to customize from the
DocTypefield - Fill in the
Web TitleandTitlefields - Save the Web Form
- Customize the Web Form layout:
- Go to the Customize Form (
Web Form>Customize Form) - Click on the
Add Rowbutton to add new rows - Drag and drop the fields from the left panel to the right panel to customize the layout
- Save the changes
- Set the Web Form as the default view for the DocType:
- Go to the DocType Settings (
Settings>DocType Settings) - Select the Web Form you created from the
Default Web Formfield - Save the changes
Now, when you access the DocType, you will see the customized layout created in the Web Form.
Please note that this method only works for simple layout customizations. For more complex layouts, you might need to create a custom List View or use a front-end framework like React or Angular to build a customized interface.
For creating a custom List View, you can follow the official Frappe documentation: https://frappe.io/docs/user/en/customize/list-views
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.