In GetFeedback Digital for Web passive feedback forms you can pre-fill your forms dynamically. Pre-filling some information in your forms makes it easier for your customers to leave feedback and provides more transparency around the information that you collect. You can - for instance - pre-fill a customer's booking ID or email address if you have this information available and would like to collect it with your feedback.
Note: keep in mind that this feature is only available for GetFeedback Digital for Web - passive feedback forms.
Let's start by looking into which form fields you can pre-fill. Keep in mind that the form below shows all possible options. We recommend you to keep you actual form shorter and as concise as possible.
The two types of input fields that can be modified are the "text field" and the email field. If you want to pre-fill either of these fields you can add them to your feedback form through the form editor.
When adding a text field, it's important to take note of the field name. You will need this later on in order to pre-fill the field in question. Make sure that the field name is short and descriptive. It cannot contain blank spaces or non-alphabetic characters. If you are only pre-filling an email field, you will not need the field name.
Pre-filling email fields happens through custom variables and requires you to add an extra script to your existing GetFeedback Digital code. If you are unsure about how to add custom variables, please have a look at this article first.
In order to pre-fill the fields, you can simply add custom variables that have the same value as the field name. In our example the code will be the following:
window.usabilla_live('data', {custom: {your_booking_id: 12345678}, email: "sophie@usabilla.com"});
After including the data, your feedback will be enriched with the values that pre-fill the form. Do note that your customers will be able to change the value.
After implementing the aforementioned code, you should be all set.
Any questions? Please reach out to our friendly support team.