This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
If you are using a Snap installation of Snap WebHost, use the link https://www.snapsurveys.com/wh/ (or https://wh.snapsurveys.com/). If you are using a non-Snap installation of Snap WebHost, replace www.snapsurveys.com (or wh.snapsurveys.com) with the path location of your Snap WebHost server.
You can pass information to the updategroupsurvey.asp page as a URL to update the respondent database for grouped surveys. This can only be achieved however if the database has already been uploaded to Snap WebHost. If the respondent database does not exist in Snap WebHost, the updatesurvey.asp page would need to be used instead. The address of the Snap hosted page is https://www.snapsurveys.com/wh/updategroupsurvey.asp.
You do this in the same way as using a survey link to seed data into the survey.
You use:
https://www.snapsurveys.com/wh/updategroupsurvey.asp
?k=surveyid&updatename=value
If you wish to set more than one item, repeat the & and then have another instruction.
https://www.snapsurveys.com/wh/updategroupsurvey.asp
?k=surveyid&updatename1=value1
&updatename2=value2&updatename3=value3
If you wish to clear the value of an item, omit the value field.
https://www.snapsurveys.com/wh/updategroupsurvey.asp
?k=surveyid&updatename=
or with multiple items
https://www.snapsurveys.com/wh/updategroupsurvey.asp
?k=surveyid&updatename1=&updatename2=value2
If you do not set or clear an item, it will keep its existing value.
Do not have any line breaks or spaces in your command. These have only been put in here because of space limitations
Because you are dealing with an asp page, you cannot use characters that have special meanings within the value strings. For example, if you set something to a value containing an &, updategroupsurvey.asp would assume that the & character meant that it must set a new variable. If you need to represent these characters, you must use percent-encoding. Replace the character on the top row with the three character code on the bottom row.
Character |
! |
* |
" |
' |
( |
) |
; |
Character |
: |
@ |
= |
+ |
$ |
, |
/ |
Character |
? |
% |
# |
[ |
] |
space |
& |
Items to set via updategroupsurvey.asp
Parameter |
Description |
Req |
Example |
Equivalent field on the updategroupsurvey page |
|---|---|---|---|---|
a |
Specify action to take: one of add, update or delete |
Yes |
&a=delete |
Action |
k |
Supply the survey k number |
Yes |
|
Survey k-number |
kp |
Supply the survey password |
(If enabled) |
|
Survey password |
p |
Set the respondent's username. This is equivalent to u on the updatesurvey page |
Yes |
|
Username |
d |
Set up any user-specific data in the record being added or updated |
|
&d=Q2%3DIntroduction%20to%20Physics%26Q3%3Dfred to set the survey variables {Q2} and {Q3} in the format Q2=Introduction to Physics&Q3=fred |
User data in the specified record |
s |
Set the subject (set as group questionnaire subject in dbase link) |
Yes |
&s=Dr%20John%20Goodwin |
Subject |
b |
Set the break (set as group questionnaire break in dbase link) |
(If used) |
&b=Chemistry
|
Break |
wp
|
Perform specified update or delete on all database records with the specified unique ID (parent) |
|
&wp=UIS002%26d=Q3%3Dfred sets Q3 to "fred" for all the records for user UIS002 |
Where Parent |
ws
|
Perform specified update or delete on all database records with the specified subject |
|
&ws=Dr%20John%20Goodwin %26d=Q5%3D2 sets Q5 to code 2 for all the records where the subject is Dr John Goodwin |
Where Subject |
Note that if you are passing information to a password-protected survey, the password will be visible if it is passed within a URL that is seen by the user.
Microsoft limitations on passing the command as a URL or link
Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters. Internet Explorer also has a maximum path length of 2,048 characters. This limit applies to the URLs for POST requests and GET requests. See: http://support.microsoft.com/kb/208427
|
See Also |