SurveyJS v1.12.1
Released: September 10, 2024
SurveyJS v1.12.1 introduces a breaking change: predefined theme configurations are excluded from the survey-creator-core
bundle, significantly reducing its size. Several minor enhancements and bug fixes are included as well.
[Breaking Change] Predefined theme configurations are no longer part of the survey-creator-core
bundle
SurveyJS ships with a number of predefined themes that users can apply and customize using Theme Editor in Survey Creator. Each theme is represented by a JSON object with CSS variables. These objects are part of the survey-core
package, but previously, they were also included in the survey-creator-core
package. Given that survey-core
is a dependency for survey-creator-core
, the predefined theme configurations were included in SurveyJS packages twice.
SurveyJS v1.12.1 excludes the theme configurations from the survey-creator-core
package, reducing its size by 15%. This breaking change requires a code update only in classic script projects that use Theme Editor. Reference the script listed below in the <head>
tag of the page that renders Survey Creator. Modular applications do not need a code update.
<head>
<!-- SurveyJS Form Library resources are referenced here -->
<!-- Predefined theme configurations -->
<script src="https://unpkg.com/survey-core/themes/index.min.js"></script>
<!-- Survey Creator resources are referenced here -->
</head>
New Demo
Bug Fixes and Minor Enhancements
Form Library
- A masked date-time field returns an unexpected value when using the
currentDate()
function indefaultValueExpression
(#8773) - Multi-Select Dropdown (Tag Box) doesn't show "required" errors when immediate validation is enabled (#8666)
- Multi-Select Matrix: The Undo operation doesn't work for a column's "Choices" property in Survey Creator (#8791)
- Single-Select Matrix: A required validation error appears immediately after changing a single row value when a complete trigger is specified (#8727)
- Single-Select Matrix: Cell texts within a scoring rubric matrix cannot be translated (#8759)\
- The
choicesByUrl
class doesn't store the value of a custom property (#8783) focusFirstQuestionAutomatic
andfocusFirstQuestion()
do not focus a Dynamic Panel with no input fields (#8764)- Dynamic Panel: Question numbers may be initially missing at design time in Survey Creator (#8793)
Survey Creator
- Image Picker: Show an error when users try to use a YouTube video as a choice option (#5867)
- An
onShowingProperty
event handler throws an error when switching to the Translation tab (#5869) - Multi-Select Matrix: Column headers disappear at design time when users edit column choices and the column's
showInMultipleColumns
property is enabled (#5826) - Adorners switch to compact mode inconsistently (#5683)
- Toolbox: TypeScript throws compilation errors when adding a new toolbox subitem (#5866)
Dashboard
- Charts do not immediately adapt to a smaller width when you switch between visualizers (#469)
- Vertical bar cuts off labels when they are displayed diagonally or vertically (#470)
PDF Generator
applyImageFit: true
affects the size of the header and footer images rendered using theonRenderHeader
andonRenderFooter
functions (#330)- Long Text questions render incorrectly when they are split between two pages (#328)
How to Update SurveyJS Libraries in Your Application
Angular
npm i survey-core@1.12.1 survey-angular-ui@1.12.1 --save
npm i survey-creator-core@1.12.1 survey-creator-angular@1.12.1 --save
npm i survey-analytics@1.12.1 --save
npm i survey-pdf@1.12.1 --save
React
npm i survey-core@1.12.1 survey-react-ui@1.12.1 --save
npm i survey-creator-core@1.12.1 survey-creator-react@1.12.1 --save
npm i survey-analytics@1.12.1 --save
npm i survey-pdf@1.12.1 --save
Vue 3
npm i survey-core@1.12.1 survey-vue3-ui@1.12.1 --save
npm i survey-creator-core@1.12.1 survey-creator-vue@1.12.1 --save
npm i survey-analytics@1.12.1 --save
npm i survey-pdf@1.12.1 --save
Vue 2
npm i survey-core@1.12.1 survey-vue-ui@1.12.1 --save
npm i survey-creator-core@1.12.1 survey-creator-knockout@1.12.1 --save
npm i survey-analytics@1.12.1 --save
npm i survey-pdf@1.12.1 --save
HTML/CSS/JavaScript
<link href="https://unpkg.com/survey-core@1.12.1/defaultV2.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/survey-core@1.12.1/survey.core.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/survey-js-ui@1.12.1/survey-js-ui.min.js"></script>
<script src="https://unpkg.com/survey-core@1.12.1/themes/index.min.js"></script>
<link href="https://unpkg.com/survey-creator-core@1.12.1/survey-creator-core.min.css" type="text/css" rel="stylesheet">
<script src="https://unpkg.com/survey-creator-core@1.12.1/survey-creator-core.min.js"></script>
<script src="https://unpkg.com/survey-creator-js@1.12.1/survey-creator-js.min.js"></script>
<link href="https://unpkg.com/survey-analytics@1.12.1/survey.analytics.min.css" rel="stylesheet">
<script src="https://unpkg.com/survey-analytics@1.12.1/survey.analytics.min.js"></script>
<script src="https://unpkg.com/survey-pdf@1.12.1/survey.pdf.min.js"></script>