You can insert hidden fields into the response URL to display additional information in the data collected through that URL.
Inserting hidden fields into the response URL means that even if respondents do not select or input answers directly, the values of those hidden fields are entered as data for those respondents. For example, if you insert the hidden field value 'NewyorkBranch' in the URL, the response data from respondents who answered through that URL will all contain 'NewyorkBranch'.
Here's how to insert hidden fields into a URL:
Assume you have a response URL like https://moaform.com/q/abcdefg. To add hidden field, attach "?" followed by d1=NewyorkBranch as a hidden field to the URL.
https://moaform.com/q/abcedfg?d1=NewyorkBranch
All respondents who answer through this link will have "NewyorkBranch" stored in the d1 hidden field.
Multiple hidden fields can be added using "&".
https://moaform.com/q/abcdefg?d1=NewyorkBranch&d2=SalesTeam&d3=1stQuarter
All respondents who answer through the above link will have data stored as "NewyorkBranch" in the d1 hidden field, "SalesTeam" in the d2 hidden field, and "1stQuarter" in the d3 hidden field. (The hidden fields differentiated as d1, d2… must be used in the format d+number.)
The stored additional data can be checked for each respondent in the Results by respondent at Results page and downloaded Excel file. In the Results by question, statistics are not provided separately.
Important Notice! (must read)
- Hidden fields can directly use only English alphabets (both uppercase and lowercase) and numbers. Other languages, symbols, or special characters may not be recognized correctly (d1=NewyorkBranch (O), d1=뉴욕지사 (X)). To use symbols or special characters, they must be escape-encoded. (See useful information below.)
- The number of hidden fields that can be inserted is valid only from d1 to d100, and the total length of the URL including these should not exceed 2083 characters. If you exceed d1-d100 or 2083 characters, it may not be recognized correctly.
- The URL hidden field insertion feature is a PRO feature. The collected hidden field data can be viewed only while the user maintains the PRO level. If downgraded to BASIC or PLUS, the hidden field data cannot be accessed on the result page or in the Excel file.
Useful Information for URL Hidden Field Insertion:
- Hidden fields can be inserted into Surveylink URLs in the same way.
https://surveyl.ink/abcdefg?d1=NewyorkBranch - You also can insert hidden field into unique URLs issued by using the ‘Restrict to response code and URL’ option among the Multiple responses settings.
https://moaform.com/q/abcdefg?_mc=aabbcc&d1=NewyorkBranch - If hidden field is used redundantly, only the last used field is saved. Since d1 is inserted twice as below, only “LondonBranch” entered later is saved as d1 data.
https://moaform.com/q/abcdefg?d1=NewyorkBranch&d2=SalesTeam&d1=LondonBranch - Special characters escape code table
Special character Escape code Special character Escape code SPACE %20 [ %5B < %3C ] %5D > %3E ‘ %60 # %23 ; %3B % %25 / %2F + %2B ? %3F { %7B : %3A } %7D @ %40 | %7C = %3D \ %5C & %26 ^ %5E $ %24 ~ %7E ( %28 * %2A ) %29 - %2D _ %5F . %2E
For example, if you want to store abc@abc.com as d1 data then use escape code as below.
https://moaform.com/q/abcdefg?d1=abc%40abc%2Ecom - It will not work inserting hidden field into continue answering URL which is provided to respondents for surveys using continue answering feature.