Hidden fields can be used to include data that you already have to your form URL and personalize your respondent's form experience or give you better insights into your results. Some use cases for hidden fields:
- Tag the Traffic source of your respondent (social media, triggers on your website, or other)
- Pass on information about your respondent to your responses (like name or email address)
- Mention information in your form like the name of your respondent using answer piping
- Prefill input fields on your form
- Pass information from one form to another
You can retrieve the hidden field data and responses on your responses page.
Create a hidden field:
Click '+' or type '/' to insert an input block, search for 'Hidden Fields' and insert the Hidden Fields block:
Add the hidden fields you want to pass on to your form. You can add as many hidden field blocks as you like. If you want to add the name and the traffic source of your respondent, add 2 hidden fields block and name them for example 'name' and 'ref'.
Finish your form and publish it. Find your URL in the share tab.
When you share the form, add the parameters and corresponding values to your URL: ?name=value&ref=value
For example: https://tally.so/r/nPdDxn?name=marie&ref=email
There are 2 ways to do this:
- Manually: add the variable to your URL before sharing your form
- Automated: use any CRM system (such as Salesforce) or email automation tool (such as Mailchimp) to populate your data, so your respondents automatically receive a customized URL with the correct data.
You will find the hidden fields and corresponding answers in the 'Responses' tab, when someone submits your form.
Mention a hidden field
Embed a form with hidden fields
In order for the URL parameters to work with an embedded form, you need to add them to the embed link (or code), for example: