This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Example of adding a new respondent with email data

This example describes how to add a new respondent "mrogan" to a survey. She has an email address of "[email protected]". The survey has a k number of 124713335121 and the password for Enabling database updates is "Good!".

You could set these details up with the string

https://www.snapsurveys.com/swh/updatesurvey.asp?a=add&k=124713335121&kp=Good%21&u=mrogan&e=mrogan%40company.com

You could use this string as a dynamically-generated hidden link on a web page, or some other form as scripting to interact with the updatesurvey.asp page.

Note that the ! in the password must be percent-encoded to %21, and the @ sign in the email address must be percent encoded to %40.

If the email invites contains seeded data, you need to pass the data for the fields to updatesurvey.asp via the m parameter.

For example the email below uses two fields from the database: Name and Job_title. Snap WebHost: showing tags in HTML email message

To set {Name} to "Michelle" and {Job_title} to "Marketing director", you would need to pass the seeding string

Name=Michelle&Job_title=Marketing director

as the value of the m parameter in updatesurvey.asp. Substituting %3D for =, %20 for a space and %26 for an &, your new string is

https://www.snapsurveys.com/swh/updatesurvey.asp?a=add&k=124713335121&kp=Good%21&u=mrogan&e=mrogan%40company.com&m=Name%3DMichelle%26Job_title%3DMarketing%20director.

(Remember that you cannot use spaces or carriage returns. The ones shown here are due to layout limitations.)

See Also

Enabling respondent updates online

Passing information to the updatesurvey.asp page

Testing changes by hand on the updatesurvey.asp

Example of updating an existing respondent with seeded survey data

Troubleshooting problems with updatesurvey.asp

Automatic managing of respondents for group surveys