Survey Programming
XML Tags
- Overview of the Survey Tag and Quick Links
- Block Tag: Create Sections
- Condition Tag: Create Simpler References to Condition Logic
- Datasource Tag: Pull Data From a Tab-Delimited File
- Exec Tag: Execute Python Code
Survey Attributes
- Attributes for Device Settings
- Attributes for Display Settings
- Attributes for Field Settings
- Attributes for Project Settings
- Attributes for Question Settings
-
Python Functions
There are several built-in Python functions that can help save you time. 1: allQuestions - Access Any Question allQuestions is a Python dictionary available...
-
Adding Condition / Skip Logic
Condition logic, or "skip logic", is used to show or hide certain elements in a survey. These elements can be questions, rows, columns, concepts, Python exe...
-
Adding Virtual Questions to the Report
A virtual question is a question that has the virtual attribute set to some value. Virtual questions are never shown to participants and cannot be used to c...
-
Adding Quotas Using the XML Editor
Important: To avoid additional charges from oversampling, we recommend adding quotas for all surveys with purchased sample.This document describes the proce...
-
Mobile Optimization Options
Note: Surveys must be compat=28 or above for mobile features to work. 1: Overview The survey system is equipped with features that will auto-detect partici...
-
Streamline Conditions with Vector Logic
Vector logic is an additional and more abbreviated way to write Python condition logic. Consider the following examples. Normal (Non-Vector) Logic <number ...
-
Quota Hooks
You can use a quota hook to modify the possible quota cell assignments for a survey participant.1: Defining the FunctionTo modify quota cell assignments usi...
-
Macro System: Create Reusable Elements
Important: Macros cannot be used with the Survey Editor. Unless unmacro="0" is set, editing a survey with macros using the Survey Editor will unravel the ma...
-
Variable Replacement
You can use variable replacement to dynamically display survey variables and other data within survey questions (this process is also known as data piping)....
-
Reloading Participant Data Using loadData
Our system will not allow a completed record to re-enter a survey by default. However, sometimes you may need to override this functionality in order to allo...
-
Importing External Offline Data with File()
This article details the process for importing offline data using the survey XML.Note: See Import Data Element to learn how to import data using the Survey ...
-
Modify Survey Structure with Mutators
Mutators are functions that modify the structure of the survey (e.g., creating new questions or question rows). Here's a code snippet of the mutator functio...
-
Loading Data from an Existing Survey
To pass survey data from an existing survey into a new project, use the loadRecord() function. This built-in function can pull participant data from a previ...
-
Survey Transformation System
Requires Decipher Cloud The Survey Transformation System allows you to run a script to modify survey content in reaction to completes or other events. It ...
-
Hiding Low Base Segments in Reports and Exports
By setting a restriction using an attribute in the survey XML, you can disable data for segments that fall below a specified number of completes. This may be...
-
Setting an Answer Option Base to Total Shown
1: Overview You can adjust the "Percentage Base" by selecting Edit Settings in Crosstabs. By default, the drop down menu on the right allows you to select ...
-
Including Campaign Manager Data Using the Automated Database System (ADB)
The automated database management system makes it very easy to include tab-delimited sample files into your survey. The system can be used to automatically ...
-
Creating and Managing an Auxiliary Database
The Auxiliary Database system is an alternative way to read and write data in the system. Using an Auxiliary Database limits multiple read/write operations t...
-
Integrating the Automated Database Management System
The Automated Database Management system (ADB) allows you to capture Sample data that is already available in a survey. For example, if you have a Sample fil...
-
Upgrading Your Survey Compat Level
If you have a deprecated survey that is still Live, you will want to upgrade your survey compat level to allow participants to continue to take the survey on...