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 display settings for any Decipher survey:
| Attribute | Purpose | Description |
|---|---|---|
|
Load nstyles files | Implicitly added for all surveys with a compat level of 23+ (compat="23+").
Tip: Use the XML Style System instead of the older |
OldProgress |
Use Old Progress Calculations | Controls which system to be used for calculating survey progress shown by the progress bar.
|
progressOnTop |
Show Progress Bar on Top | Controls where the progress bar is displayed in the survey.
|
ss:customCSS |
Load a Single CSS File | Allows you to load one CSS file located in your project's static directory. For example, if your CSS file is named customStyle.css, then specify ss:customCSS="customStyle" to load it from the static / directory. |
ss:customJS |
Load a Single JavaScript File | Allows you to load one JS file located in your project's static directory. For example, if your script is named customScript.js, then specify ss:customJS="customScript" to load it from the static / directory. |
ss:hideProgressBar |
Hide Progress Bar | Hides the progress bar.
|
ss:includeCSS |
Load Multiple CSS Files | Allows you to add a comma-separated list of CSS files to your project (e.g., ss:includeCSS="/survey/selfserve/9d3/proj1234/style1.css, proj1235/style2.css"). |
ss:includeJS |
Load Multiple JavaScript Files | Allows you to add a comma-separated list of JavaScript files to your project (e.g., ss:includeJS="/survey/selfserve/9d3/proj1234/script1.js, proj1235/script2.js"). |
ss:logoFile |
Specify the Path to the Logo Image File | Allows you to specify a path to a logo that will be shown in the survey (e.g., ss:logoFile="selfserve/9d3/proj1234/logo.png"). |
ss:logoPosition |
Specify the Position of the Logo Image |
Controls the logo's position in the survey. By default, Specify |
ss:logoAlt |
Specify alternate text | Provides alternate text for participants with screen readers. Additionally, the alternate text is displayed if the image cannot be shown (i.e., there is a missing resource).
By default, Note: This attribute requires surveys to have a compat level of 133+ ( |
fir |
Replace survey form inputs with better images |
Note: The fir attribute requires surveys to have a compat level of 125+ ( By default, If The Learn more: Modifying Form Buttons Note: This attribute, although named alike, has nothing to do with and is not related to the "Form Image Replacement" dynamic question style. |
listDisplay |
Specify how one-column questions should be displayed |
Note: The
Controls how one-column questions should appear.
ss:listDisplay attribute requires surveys to have a compat level of 125+ (compat="125+").If If |
What's Next?
Click below to learn more about other types of <survey> attributes: