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
- The System Manager role.
- An outgoing Email Account.
Create a Feedback DocType
- Create a new custom DocType named "Feedback".
- 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.
- Save.
Create the web form
- Create a web form for the Feedback DocType.
- Add all the fields of the DocType.
- Note the Route, for example
feedback. - Select Published, and save.
Email the link with a notification
- Create a Notification for the DocType that you want feedback on, for example on submit of a Sales Order.
- In the message, add a link to the web form that fills in the document. See the example below.
- Save.
Example link:
text
https://example.com/feedback/new?document=Sales%20Order&document_name={{ doc.name }}example.comis the address of your site.feedbackis the route of the web form.document=Sales%20Orderis 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.