Survey Now v1.11.8
Released: July 23, 2024
Survey Now v1.11.8 comes with several new learning materials, enhances the displayValue expression function to retrieve a choice's display text, includes important bug fixes and minor enhancements.
The 'displayValue' expression function: Retrieve choice display texts by specific values
The displayValue function has been enhanced to support a second parameter. This parameter can be used to retrieve the display text associated with a specific question value. For example, the following expression retrieves the display text corresponding to the value 5 in a Dropdown question:
"expression": "displayValue('my-dropdown-question', 5)"
When merging question values using the valueName and valuePropertyName settings, the second value parameter allows users to copy the display values of selected checkboxes to a corresponding Dynamic Matrix column or Dynamic Panel field.
{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "checkbox",
"name": "sourceQuestion",
"title": "Select Items",
"choices": [
{
"value": 1,
"text": "Item 1"
},
{
"value": 2,
"text": "Item 2"
},
{
"value": 3,
"text": "Item 3"
}
],
"valuePropertyName": "sourceQuestionValue"
},
{
"type": "matrixdynamic",
"name": "question2",
"valueName": "sourceQuestion",
"columns": [
{
"name": "Column 1",
"defaultValueExpression": "displayValue('sourceQuestion', {row.sourceQuestionValue})"
},
{
"name": "Column 2"
},
{
"name": "Column 3"
}
],
"cellType": "text",
"allowAddRows": false,
"allowRemoveRows": false
}
]
}
]
}
New Help Topics
PDF Generator: Create PDF Forms in Node.js
New Blog Post
New and Updated Demos
Custom Functions in Expressions
New Demo Examples on GitHub
Survey Now Form Builder + Nuxt 3
Bug Fixes and Minor Enhancements
Form Library
- A progress bar that appears below the form header overlaps a page's title and description (#8578)
- Rating Scale in Dropdown Mode: The popup is immediately closed, and it's impossible to select a rate item if a question has a large title text (#8538)
- Performance of the
getUsedLocales()method can be enhanced (#8591) - Survey data is loaded incorrectly for questions with names ending with
\n(#8586) - The
getQuestionByName()method doesn't return a question instance even though it is returned by thegetAllQuestions()method (#8583) - Dynamic Matrix - A row gets an invalid value after being reordered (#8568)
- Pattern input mask: Separator characters are ignored when using the browser's autofill feature with
inputType: "tel"(#8526)
Survey Creator
- Multi-Select Matrix: The pop-up editor of Radio Button Group column choices has unused space on the right side (#5697)
- Panel titles are not displayed on the design surface until the page is refreshed (#5720)
- Localization: The
addNewTypeQuestionstring is not translated to German (#5705) - Theme Editor: The
headerViewproperty is not deserialized (#5717)
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
Knockout / jQuery
<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-knockout-ui.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-knockout.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>