Survey Now v1.12.21
Released: January 28, 2025
Survey Now v1.12.21 introduces support for conditional visibility of Rating Scale items, a new onDynamicPanelValueChanging event in Form Library, and bug fixes in Survey Creator.
Conditional Visibility for Rating Scale Items
With this release, you can set conditional visibility rules for Rating Scale items. To conditionally show a rating scale item, specify the visibleIf expression within a rate item configuration object.
The following example demonstrates how to use conditional visibility in a Rating Scale, allowing respondents to select their preferred minimum and maximum number of rooms in an apartment:
{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "rating",
"name": "minRooms",
"title": "What is the minimum number of rooms you require in an apartment for rent?",
"isRequired": true,
"autoGenerate": false,
"rateCount": 6,
"rateValues": [
{ "value": "0", "text": "Studio" },
1, 2, 3, 4,
{ "value": 5, "text": "5+" }
]
},
{
"type": "rating",
"name": "maxRooms",
"visibleIf": "{minRooms} notempty and {minRooms} < 5",
"title": "What is the maximum number of rooms you would like in an apartment for rent?",
"isRequired": true,
"autoGenerate": false,
"rateCount": 6,
"rateValues": [
{
"value": "0",
"text": "Studio",
"visibleIf": "{minRooms} = 0"
},
{
"value": 1,
"visibleIf": "{minRooms} <= 1"
},
{
"value": 2,
"visibleIf": "{minRooms} <= 2"
},
{
"value": 3,
"visibleIf": "{minRooms} <= 3"
},
{
"value": 4,
"visibleIf": "{minRooms} <= 4"
},
{
"value": 5,
"text": "5+"
}
]
}
]
}
]
}
Form Library API: New onDynamicPanelValueChanging event
This release adds a new onDynamicPanelValueChanging event to the Form Library API. Its options argument contains the old and new values of a modified field within a Dynamic Panel and allows you to retrieve the old value or modify the new value if needed.
Bug Fixes
Survey Creator
- The
Cannot read properties of undefined (reading 'id')exception is thrown when implementing thesurvey.onAfterRenderQuestionInputfunction (#9349) - A question with name "0" doesn't appear correctly within a condition editor (#6430)
- Page title and description placeholders and question adorner texts are not updated when changing
creator.localeat runtime (#6441)
How to Update Survey Now Libraries in Your Application
Angular
npm i [email protected] [email protected] --save
npm i [email protected] [email protected] --save
npm i [email protected] --save
npm i [email protected] --save
React
npm i [email protected] [email protected] --save
npm i [email protected] [email protected] --save
npm i [email protected] --save
npm i [email protected] --save
Vue 3
npm i [email protected] [email protected] --save
npm i [email protected] [email protected] --save
npm i [email protected] --save
npm i [email protected] --save
Vue 2
npm i [email protected] [email protected] --save
npm i [email protected] [email protected] --save
npm i [email protected] --save
npm i [email protected] --save
HTML/CSS/JavaScript
<link href="https://unpkg.com/[email protected]/defaultV2.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/[email protected]/survey.core.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/survey-js-ui.min.js"></script>
<script src="https://unpkg.com/[email protected]/themes/index.min.js"></script>
<link href="https://unpkg.com/[email protected]/survey-creator-core.min.css" type="text/css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/survey-creator-core.min.js"></script>
<script src="https://unpkg.com/[email protected]/survey-creator-js.min.js"></script>
<link href="https://unpkg.com/[email protected]/survey.analytics.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/survey.analytics.min.js"></script>
<script src="https://unpkg.com/[email protected]/survey.pdf.min.js"></script>