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 device settings for any Decipher survey:
| Attribute | Purpose | Description |
|---|---|---|
|
Message for Blocked Desktops | The desktopNotAllowedMessage attribute controls the message shown to participants who enter the survey on a desktop machine when desktops are not allowed.
The default message is: |
deviceNotAllowedMessage |
Message for Blocked Devices | The deviceNotAllowedMessage attribute controls the message shown to participants who enter the survey on a device that is not allowed to take the survey.
The default message is: |
featurephoneNotAllowedMessage |
Message for Blocked Feature Phones | The featurephoneNotAllowedMessage attribute controls the message shown to participants who enter the survey on a featurephone when featurephones are not allowed.
The default message is: |
mobile |
Set the Mobile Device Compatibility Level | The mobile attribute allows you to configure the mobile compatibility for your project. The default, mobile="none", allows all devices in and does not optimize the content for mobile device screen sizes. If mobile="compat" is specified, the survey will allow all mobile devices and will optimize the content for mobile device screen sizes. If mobile="mobileOnly" is specified, desktop machines (e.g., PC, Mac, etc.) will not be allowed to take the survey. If mobile="noMobile" is specified, only desktop machines will be allowed to take the survey. See Mobile Optimization Options to learn more. |
mobileDevices |
Specify the Allowed Mobile Devices | The mobileDevices attribute allows you to specify which mobile devices are allowed into the survey. If mobileDevices="smartphone, featurephone, tablet, mobile" is specified, all known mobile devices will be allowed into the survey. See Mobile Optimization Options to learn more. |
mobileOnlyMessage |
Message for Blocked Non-Mobile Devices | The mobileOnlyMessage attribute controls the message shown to participants who enter the survey on a desktop machine for a mobile="mobileOnly" survey.
The default message is: |
noMobileMessage |
Message for Blocked Mobile Devices | The noMobileMessage attribute controls the message shown to participants who enter the survey on a mobile device for a mobile="noMobile" survey.
The default message is: |
smartphoneNotAllowedMessage |
Message for Blocked Smartphones | The smartphoneNotAllowedMessage attribute controls the message shown to participants who enter the survey on a smartphone device when smartphones are not allowed.
The default message is: |
ss:disableOfflineDetection |
Set to Disable Offline Detection Warning |
The Tip: Click image to enlarge. |
tabletNotAllowedMessage |
Message for Blocked Tablets | The tabletNotAllowedMessage attribute controls the message shown to participants who enter the survey on a tablet device when tablets are not allowed.
The default message is: |
surveyDisplay |
Optimize Survey Layout Based on Device Display Size | The surveyDisplay attribute requires surveys to have a compat level of 125 +.
The It is recommended to keep the default value, If If If Note: This attribute can be applied globally to the survey element or locally at an individual question. |
Learn more about The Less Styles System.
Learn More:
More information about all of the <survey> element's attributes are provided in the documents below.