Collect feedback with a web form ​

ERPNext has no built-in feedback request. You can build one with three standard tools: a custom DocType that stores the feedback, a web form that collects it, and a notification that emails the link.

Prerequisites ​

Create a Feedback DocType ​

  1. Create a new custom DocType named "Feedback".
  2. Add these fields:
    • Document: a Link field to DocType. The user selects the type of document, for example Sales Order.
    • Document Name: a Dynamic Link field with Options set to document. Learn more about dynamic link fields.
    • Rating: a Rating field. You can add other fields, such as a comment.
  3. Save.

Create the web form ​

  1. Create a web form for the Feedback DocType.
  2. Add all the fields of the DocType.
  3. Note the Route, for example feedback.
  4. Select Published, and save.
  1. Create a Notification for the DocType that you want feedback on, for example on submit of a Sales Order.
  2. In the message, add a link to the web form that fills in the document. See the example below.
  3. Save.

Example link:

text
https://example.com/feedback/new?document=Sales%20Order&document_name={{ doc.name }}
  • example.com is the address of your site.
  • feedback is the route of the web form.
  • document=Sales%20Order is the DocType that the feedback is about.
  • document_name={{ doc.name }} fills in the name of the document.

When the customer opens the link and submits the form, ERPNext creates a Feedback document.