In this article
There are a variety of <survey> attributes that can be used to configure the behavior of both surveys and their questions across Decipher's various tools and features.
You can use the following attributes to control the various field settings for any Decipher survey:
| Attribute | Purpose | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
To Enable Multiple Submissions |
Note: This attribute cannot be used in surveys with The Upon submitting the data again, a new entry in the dataset is created with their new responses using the same record and This attribute is very rarely used and is more common in phone-based surveys. Note: There is a 60-second period in which duplicate responses are discarded. After 60 seconds, a participant may submit their responses again. |
||||||||||
allowedCountries |
List of Allowed Countries | The allowedCountries attribute controls exactly which countries should be allowed to take the survey. Specify the allowed countries using their lower-case ISO 3166-1 alpha-2 country code (e.g., allowedCountries="us,fr,de").
All countries not specified and IP addresses that cannot be resolved will be excluded from the survey. As shown below, you may override the system error message that is shown to excluded participants. <res label="sys_invited.geoip">You are not permitted to take this survey from your location.</res> |
||||||||||
alwaysSaveData |
To Allow Data Load at Page Submission |
Note: Surveys with The Note: Requires use of |
||||||||||
autosave |
To Auto Save Participant Progress |
Note: Surveys with The This only works if the participant has cookies enabled and enters the survey using the same browser. To customize this behavior, see Note: In surveys with |
||||||||||
autosaveKey |
Set the Auto Save Key Variable | The autosaveKey attribute allows you to create a variable to save a participant's progress by.
By default, the A participant will be able to enter the survey and continue where they left off using this variable (e.g., Tip: Use the [user@server proj1234]$ autosave . list Assuming . refers to selfserve/9d3/proj1234 source:asdf1234 1 keys total [user@server proj1234]$ echo "source:asdf1234" > delete_keys.txt [user@server proj1234]$ autosave . delete delete_keys.txt Assuming . refers to selfserve/9d3/proj1234 1 keys deleted, 0 missing |
||||||||||
browserDupes |
To Disable Browser Duplication | The browserDupes attribute can be set to "cookie", "safe", "strict", or "" (blank) and allows you to control how duplicates are checked. When set, participants can only complete the survey once and the system stores a cookie to remember. Cookies expire between 30 days and never, depending on the option chosen.
If
Learn more: Implementing a Digital Fingerprinting System |
||||||||||
closed |
Set the State of Survey to Closed | The closed attribute controls the status of the survey. If closed="1" is set, then no further participants will be allowed into the survey.
Tip: Instead of using this attribute, you may want to set the state attribute to "closed". |
||||||||||
builder:cname |
Add a CNAME to the Survey | The builder:cname attribute allows you to add a pre-configured CNAME to your survey.
For example: builder:cname="desiredcname.com" Note: CNAME's must be configured within a company directory prior to use in a survey. See Setting Up a Domain Alias (CNAME) to learn more about CNAME configuration and setup. |
||||||||||
fingerprint |
Specify What Fingerprinting Information to Capture | The fingerprint attribute can be set to "none", "all", "etag", "browser", "flash", or "html5" and controls which variables are captured for fingerprinting participants.
If Learn more: Implementing a Digital Fingerprinting System |
||||||||||
forbiddenCountries |
List of Countries Not Allowed | The forbiddenCountries attribute controls which countries should be forbidden from taking the survey. Specify the forbidden countries using their lower-case ISO 3166-1 alpha-2 country code (e.g., forbiddenCountries="us,fr,de").
All participants from the specified countries or with an IP address that cannot be resolved will be excluded from the survey. Learn more: |
||||||||||
loadData |
Specify Variable Key to Load Existing Data | The loadData attribute allows you to load a participant's data based on a variable so that they can modify their existing answers.
For example, if Requires that |
||||||||||
loggedInCanSubmit |
Set to Allow Logged-In User Submission | The loggedInCanSubmit attribute enables staff members and logged-in users to submit data. If loggedInCanSubmit="1" is specified, staff and logged-in users will be able to record their data into the survey. |
||||||||||
markerTimeout |
Specifying the Time until Markers Are Released | The markerTimeout attribute is an integer value that controls the number of seconds before a partial participant's markers stop counting in the quota system.
The default, The Surveys with
|
||||||||||
persistentExit |
Prevent the Wrong Exit URL from Being Displayed |
Note: Surveys with
delphi="1" have this attribute "on" by default.The
Note: |
||||||||||
requires |
To Require JavaScript Enabled |
The For |
||||||||||
secure |
Set to Force HTTPS Connection | The secure attribute is a boolean value that allows you to force participants to use HTTPS at all times when taking the survey. If secure="1" is specified, then all participants will be forced to use a secure connection. |
||||||||||
setup |
Setup the Survey Boilerplate | The setup attribute is a comma-separated list of options to configure your project. This attribute accepts any of the following: quota, time, decLang and term.
If Note: |
||||||||||
ss:disableBackButton |
To Disable Browser "Back" Button | The ss:disableBackButton attribute is a boolean value that controls whether the browser's "Back" button should be enabled for participants.
If Note: It is recommended that you use the survey "Back" button rather than your browser's "Back" button to move backward through a survey. |
||||||||||
state |
Set the Survey's State | The state attribute sets the survey status.
A survey's
|
||||||||||
unique |
Specify a Required Unique Variable | The unique attribute is used to limit access to the survey.
Supply an This is similar to specifying a sample source <var name="source" unique="1" filename="invited.txt"/> Note: Adding Learn more: Locking Down a Survey by Unique Variables |
||||||||||
uniqueOnly |
Set to Prevent Validating With invited.txt
|
The uniqueOnly attribute is a boolean value that enables you to use the unique attribute mentioned above without the use of the invited.txt file.
If This is similar to specifying a sample source <var name="source" unique="1"/> Learn more: Locking Down a Survey by Unique Variables |
||||||||||
ss:enableNavigation |
Add a "Back" Button to the Survey | The ss:enableNavigation attribute is a boolean value that enables you to add a "Back" button to the survey.
If When the "Back" button is clicked, the previous survey page will be loaded with the data that was submitted and the participant will have an opportunity to modify their responses and proceed forward (or backward, again). |
Learn More:
More information about all of the <survey> element's attributes is provided in the documents below: