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 question settings for any Decipher survey.
Note: Click to enlarge each image.
| Attribute | Purpose | Description |
|---|---|---|
|
Specifying Which Questions to Show on Error |
The If If |
html:showNumber |
Showing Question Numbers | The html:showNumber attribute is a boolean value that controls whether or not to show a number alongside each question see by the participant. Regardless of the labels provided, each question will be numbered starting with 1. (e.g., 1. What is..., 2. Please specify..., 3. Choose one of...).
Note: If a question is skipped, the question numbering skips as well. For example, you may see "1" immediately followed by "5" if each question in between was skipped. |
newVirtual |
Using Python Virtual Elements | The newVirtual attribute is implicitly added for all surveys compat="20+".
If Tip: Learn more about Virtual Questions and Python Expressions. |
pipeAltLabels |
Using Alternative Labels for Pipes |
The For example, if <radio label="Q1" altlabel="Baby_Gender">
<title>Is it a...</title>
<row label="r1">Boy</row>
<row label="r2">Girl</row>
</radio>
<suspend/>
<html label="Congrats" where="survey">Congrats on your [pipe: Baby_Gender lower]!</html>
|
pipeErrors |
Generating a Fatal Error for Invalid Piping | The pipeErrors attribute allows you to generate a fatal error whenever the system encounters invalid piping. By default, invalid piping is displayed as text within the survey.
For example, if you want to pipe in "some_pipe", but forget to set Note: The |
uses |
Setting Which Dynamic Question Styles to Use | The uses attribute allows you to specify global styles to apply across the entire survey.
For example, if <survey name="Survey"
...
...
uses="fir.2"
fir:icon_css="color: red;"
...
...>
See Dynamic Question Versioning to learn more about the current dynamic question version numbers used currently. |
Learn More:
More information about all of the <survey> element's attributes is provided in the documents below.