SurveyJS v1.12.16
Released: December 24, 2024
SurveyJS v1.12.16 introduces a new dateAdd
function for expressions and includes bug fixes and minor enhancements.
Expressions: New dateAdd()
function
SurveyJS v1.12.16 introduces a new built-in function that you can use in expressions—dateAdd(date, numberToAdd, interval)
. This function adds or subtracts a specified number of full days (default), months, or years to or from a date value and returns a new Date
object:
// Adds 14 days to today's date
"dateAdd(today(), 14)"
// Adds 6 months to the value of a `start-date` question
"dateAdd({start-date}, 6, 'months')",
// Subtracts 10 years from the value of a `birthdate` question
"dateAdd({birthdate}, -10, 'years')"
New Help Topics
Survey Creator: How to Customize Validation Messages
New and Updated Demos
Survey Creator: Customize the Designer and Preview Tabs
Survey Creator: Page-by-Page Form Editing
Bug Fixes and Minor Enhancements
Form Library
- Table of Contents doesn't allow users switch pages when
validationAllowComplete
andvalidationAllowSwitchPages
are enabled (#9177) - Table of Contents is not synchronized with the first invalid page when the survey is in single-page mode (#9182)
- Duplicate error messages appear during async validation (#8993)
- Multiple Textboxes: The
onPropertyChanged
event is not raised when changing a property of an inner item (#9200) - Dynamic Matrix displays empty detail forms in the survey preview (#9175)
Survey Creator
- Property Grid incorrectly scrolls an editor into view during search (#6286)
- Design surface: Adorners flicker for questions nested within more than one panel (#6271)
Dashboard
- A dropdown with hidden questions disappears when you try to reorder other visualizers (#493)
How to Update SurveyJS Libraries in Your Application
Angular
npm i survey-core@1.12.16 survey-angular-ui@1.12.16 --save
npm i survey-creator-core@1.12.16 survey-creator-angular@1.12.16 --save
npm i survey-analytics@1.12.16 --save
npm i survey-pdf@1.12.16 --save
React
npm i survey-core@1.12.16 survey-react-ui@1.12.16 --save
npm i survey-creator-core@1.12.16 survey-creator-react@1.12.16 --save
npm i survey-analytics@1.12.16 --save
npm i survey-pdf@1.12.16 --save
Vue 3
npm i survey-core@1.12.16 survey-vue3-ui@1.12.16 --save
npm i survey-creator-core@1.12.16 survey-creator-vue@1.12.16 --save
npm i survey-analytics@1.12.16 --save
npm i survey-pdf@1.12.16 --save
Vue 2
npm i survey-core@1.12.16 survey-vue-ui@1.12.16 --save
npm i survey-creator-core@1.12.16 survey-creator-knockout@1.12.16 --save
npm i survey-analytics@1.12.16 --save
npm i survey-pdf@1.12.16 --save
HTML/CSS/JavaScript
<link href="https://unpkg.com/survey-core@1.12.16/defaultV2.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/survey-core@1.12.16/survey.core.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/survey-js-ui@1.12.16/survey-js-ui.min.js"></script>
<script src="https://unpkg.com/survey-core@1.12.16/themes/index.min.js"></script>
<link href="https://unpkg.com/survey-creator-core@1.12.16/survey-creator-core.min.css" type="text/css" rel="stylesheet">
<script src="https://unpkg.com/survey-creator-core@1.12.16/survey-creator-core.min.js"></script>
<script src="https://unpkg.com/survey-creator-js@1.12.16/survey-creator-js.min.js"></script>
<link href="https://unpkg.com/survey-analytics@1.12.16/survey.analytics.min.css" rel="stylesheet">
<script src="https://unpkg.com/survey-analytics@1.12.16/survey.analytics.min.js"></script>
<script src="https://unpkg.com/survey-pdf@1.12.16/survey.pdf.min.js"></script>