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 report settings for any Decipher survey:
Note: Click to enlarge each image.
| Attribute | Purpose | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Setting Expansion Level for vos / vbrowser Tables | The agents attribute controls the operating system (vos) and browser version (vbrowser) virtual questions generated automatically in the report. It can be set to "normal", "full" or "none". It is required that userAgent be present in the extraVariables attribute for these tables to populate.
By default,
If
Set Note: In |
||||||||
autoAddVariables |
Adding New Variables to Layouts Automatically | The autoAddVariables attribute is a boolean value that controls whether new variables should be automatically added to data layouts.
If For example, if your existing layout has Q1r1 and Q1r2 selected (checkbox) and you have added Q1r3 to your project after having created the layout, Q1r3 will automatically be inserted after Q1r2. However, a new Q1r3oe would not be inserted since it does not match the type. |
||||||||
autoRecover |
Setting to Automatically Recover Partials |
Note: Surveys with The If A partial participant is a participant who has entered the survey but has not completed or submitted data in the last 15 minutes. If a partially recovered participant completes the survey, the previous partial data entry is updated with the new data. |
||||||||
blankValue |
Specifying Replacement Value of Blanks | The blankValue attribute allows you to replace the value for blanks in the dataset.
For example, specifying Tip: This attribute is also available on per question basis. <radio label="Q1" optional="1" blankValue="NO ANSWER"> <title>Please choose one...</title> <row label="r1">Item 1</row> ... ... </radio> |
||||||||
capturePreciseTime |
Capturing Precision Timing |
Note: Surveys with The If You can access the timing details in real time using any of the following functions:
For example: <text label="Q1" title="What is your email address?"/>
<suspend/>
<html label="Q1_Timing" where="survey">
<p>You took ${preciseTimeSpent(Q1.page)} seconds to answer that question.</p>
</html>
Note: For surveys with You can access the timing details using the following functions in a virtual question
For example: <float label="vqt1" title="Time spent on Q1"> <virtual> vqt1.val = preciseTimeSpent(uuid, “Q5”) </virtual> </float> The following mutator function is also available to store the precise time for each page: <float label="pagetime" onLoad="preciseTimePerPage()" title="."/> Note: In surveys without |
||||||||
cbUseFwidth |
Using Fixed Width for Column Binary Files | The cbUseFwidth attribute is a boolean value that forces column binary files to use the fixed-width set in the variables.xls file (which defaults to sixty-four) rather than always using nine. |
||||||||
checkboxBlankIfZero |
Using Blank Instead of 0 for Checkboxes | The checkboxBlankIfZero attribute is a boolean value that allows you to control the value for <checkbox> elements.
If |
||||||||
dashboard |
Specifying Variables to Include in Response Summary |
Note: This attribute is not usable in surveys with The This attribute accepts a space-separated list of question variables with an appropriate row / column label (e.g., <radio label="Q1"> <title>Radio Question (Select One:)</title> <row label="r1">Row 1</row> <row label="r2">Row 2</row> <row label="r3">Row 3</row> <row label="r4">Row 4</row> </radio> <checkbox label="Q2" atleast="1"> <title>Checkbox Question (Select all that apply:)</title> <row label="r1">1</row> <row label="r2">2</row> <row label="r3">3</row> <row label="r4">4</row> </checkbox> <suspend/> If you specify |
||||||||
dashboardInclude |
Specifying Data File to Include in Response Summary |
Note: This attribute is not usable in surveys with The This is used sometimes to refer to a different tab-delimited file for the report and the Response Summary. |
||||||||
dashboardIncludeKey |
Specifying Key to Use for Response Summary Data File | The dashboardIncludeKey attribute allows you to specify a variable other than source to index the file included for the Response Summary. |
||||||||
fixedWidth |
Setting the Size of Fixed-Width Fields | The fixedWidth attribute controls the way fixed-width files show open-ended data.
By default, If |
||||||||
flatKey |
Setting the Key for Flat Form Data | The flatKey attribute is used to get the OE Data (Flat Form) data file type. Specify a comma-separated list of variables (e.g., flatType="item1,item2,item3,..." or flatType="PID") and the data will be outputted according to the key(s) specified. |
||||||||
flatShowEmpty |
Setting to Show Empty Lines in Flat Form | The flatShowEmpty attribute is a boolean value that controls the OE Data (Flat Form) data file type to show empty lines.
If |
||||||||
forceDataCharset |
Setting the Downloaded Data Character Set | The forceDataCharset attribute allows you to convert data downloads contained within zip files from their default character set (typically UTF-8) to a new character set.
Note: This attribute is used in very rare cases and you may find the available character sets on Python.org. |
||||||||
fwoe |
Specifying OE Data to Include in Fixed-Width Files | The fwoe attribute can be set to "text", "textarea", "other" or "" (blank) and controls which open-ended data appears in the data.
If If |
||||||||
geoip |
Setting to Generate GeoIP Variables | The geoip attribute controls the virtual questions that are added to the survey related to participant GeoIP information.
If Learn more: Implementing a Digital Fingerprinting System. |
||||||||
imagePrefix |
Specifying a Prefix for "Uploaded Files" Downloads | The imagePrefix attribute controls the variable prepended to the "Uploaded Files" in the data downloads menu.
By default, the participant's record is prepended. You may specify, for example, |
||||||||
indexed |
Specifying Variables to Index Data By |
Note: In surveys with The |
||||||||
minimumSegment |
Setting Minimum Population Size for Segments | The minimumSegment attribute enables you to disable segments that do not meet a certain number of population. If minimumSegment="10" is specified, then segments below that population appear as blanks in the reports. This is required to obey certain UK market research regulations.
Learn more: Hiding Low Base Segments in Reports and Exports. |
||||||||
namingScheme |
Specifying Variable Naming Format | The namingScheme attribute can be used to adjust the data labels for your questions. If namingScheme="cruft cruft" is specified, the system uses an older way of generating labels in the report. If namingScheme="TEST TEST" is specified, the question labels for each variable get changed to "TEST" instead of the normal "Q1".
The default value,
There are two parts to the naming scheme: the first part (before the space) is for normal questions and the second part (after space) is for open-ended questions. Instead of |
||||||||
precision |
Setting the Number of Digits to Display After Decimal | The precision attribute controls the number of digits to display after the decimal points for fixed-width data files.
By default, the |
||||||||
saveRandomOrder |
Saving the order of shuffled elements | The saveRandomOrder attribute is a boolean value that controls whether the order of randomized elements is saved when a participant exits the survey.
If Note: The "Random Order" file located in the "Tracking Files" section of the data downloads will be blank. |
||||||||
spssSimpleCheckbox |
Setting to Show Simple Labels in SPSS | The spssSimpleCheckbox attribute is a boolean value that changes the value labels for checkboxes in the SPSS script data downloads.
For example, instead of displaying |
||||||||
sql |
Using SQL Database |
Note: This attribute is not usable in surveys with The |
||||||||
sqlRefreshTime |
Setting the SQL Database Refresh Time | The sqlRefreshTime attribute is an integer value that allows you to override the default time it takes for new records to appear in the report after having been added to the SQL database.
The default is 3600 seconds (1 hour) and can be set to a lower value for smaller surveys. For panel surveys, however, this time should be kept at 1 hour to avoid lengthy delays. |
||||||||
sqlTarget |
Setting the SQL Database File Path | The sqlTarget attribute can be set to the path where the SQL database should be stored.
For example, if |
||||||||
trackCheckbox |
Setting to Show Blanks for Unseen Checkbox Cells |
Note: Surveys with Tip: If |
||||||||
trackVars |
Setting to Show Blanks for Unseen Checkbox Cells |
Note: Surveys with The If The In contrast to Note: Checkbox visibility is not tracked for questions with If you use Learn more: Setting an Answer Option Base to Total Shown If Tip: You can specify |
||||||||
weights |
Specifying Weights for Data Weighting | The weights attribute allows you to provide weights for individual questions. |
||||||||
zeroPad |
Setting to Enable Leading Zeroes for Fixed-Width Files | The zeroPad attribute controls the leading zeroes in fixed-width files.
If |
1: Learn More
Click the links to get information on the below listed <survey> element's attributes.