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 ​

  1. Open the Web Form list and create a new Web Form.
  2. Enter the Title. ERPNext creates the Route from it.
  3. In Select DocType, select the DocType that the form creates, for example Lead or Issue.
  4. 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.
  5. Optional: add an Introduction above the form.
  6. Select Published, and save.

To view the form, select See on Website.

Choose who can use the form ​

SettingEffect
Login requiredOnly signed-in users can fill in the form
Allow editing after submitThe user can change the response later
Allow multiple responsesThe user can submit more than one response
Allow deleteThe user can delete their responses
Allow printThe user can print a response in the selected Print Format
Allow commentsThe user can comment on a response
Allow incomplete formsThe user can save the form without the mandatory fields
Show attachmentsShows the files attached to a response
Anonymous responsesSubmits all responses anonymously
Apply document permissionsUses 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.