Create a web form
A Web Form is a form on your website that creates a document in ERPNext. People outside your company, such as customers, suppliers, or job applicants, use it without access to the Desk. For example, a visitor can apply for a job, or a customer can see the issues that they reported.
INFO
Web Form is part of the Frappe Framework. Learn more in the Frappe web form documentation.
Create the form
- Open the Web Form list and create a new Web Form.
- Enter the Title. ERPNext creates the Route from it.
- In Select DocType, select the DocType that the form creates, for example Lead or Issue.
- In the Web Form Fields table, add the fields of the DocType that the visitor fills in. You can change their labels. Keep the form short.
- Optional: add an Introduction above the form.
- Select Published, and save.
To view the form, select See on Website.
Choose who can use the form
| Setting | Effect |
|---|---|
| Login required | Only signed-in users can fill in the form |
| Allow editing after submit | The user can change the response later |
| Allow multiple responses | The user can submit more than one response |
| Allow delete | The user can delete their responses |
| Allow print | The user can print a response in the selected Print Format |
| Allow comments | The user can comment on a response |
| Allow incomplete forms | The user can save the form without the mandatory fields |
| Show attachments | Shows the files attached to a response |
| Anonymous responses | Submits all responses anonymously |
| Apply document permissions | Uses the permissions of the DocType for the user |
With Login required, you can select Show list to give users a list of their responses, with the List Columns that you choose.
Set what happens after submission
- Success title and Success message: the text that the user sees after submitting.
- Success URL: the page that opens after submitting.
Customize the form
- Show sidebar and Website Sidebar: show links next to the form.
- Client script: JavaScript that validates input, fills in values, or reacts to changes.
- Custom CSS: styles for the form.
- Meta title, Meta description, Meta image: what search engines and social networks show.
- Child tables: add a table field of the DocType to collect rows.
TIP
To collect a payment with a form, for example for an event ticket, install the payments app. It adds payment options to Web Form.
Where responses go
Each response creates a document of the selected DocType. Find the responses in the list of that DocType.