SurveyJS v1.9.125
Released: January 11, 2024
SurveyJS v1.9.125 implements a capability to prevent duplicate responses in rows of a Single-Select Matrix, introduces an API to specify default titles for questions created based on custom question types, and includes other enhancements and bug fixes.
Single-Select Matrix: Prevent duplicate responses in rows
A Single-Select Matrix displays multiple survey questions with identical answers in a table form and allows respondents to select one answer in each row. If you want the answers to be unique across all rows, you can now enable a new eachRowUnique
property for your Single-Select Matrix:
const surveyJson = {
"elements": [{
"type": "matrix",
// ...
"eachRowUnique": true
}]
}
If a respondent submits duplicate answers, the matrix displays a validation error:

Default question title for custom question types
SurveyJS Form Library enables you to create custom specialized and composite question types to customize and group form fields. However, previous SurveyJS versions didn't allow you to specify a default question title that would be used instead of a question name when Survey Creator users create a new question based on your custom question type or when Form Library displays the custom question in a form. SurveyJS v1.9.125 support this capability using a new defaultQuestionTitle
property, which is part of the ICustomQuestionTypeConfiguration
interface. This property accepts a default question title as a string value or as an object that defines different titles for different locales:
import { ComponentCollection } from "survey-core";
ComponentCollection.Instance.add({
// ...
defaultQuestionTitle: "Default title"
});
// ===== OR =====
ComponentCollection.Instance.add({
// ...
defaultQuestionTitle: {
en: "Default title",
de: "Standardtitel",
fr: "Titre par défaut"
}
});
New and Updated Demos
New Blog Post
Understanding Text Piping in SurveyJS Forms: A-Z Guide
Bug Fixes and Minor Enhancements
Form Library
- Questions within custom components do not display survey variable values (#7640)
default
attribute doesn't apply for a custom localizable property (#7630)- Performance on loading a JSON object with many matrices could be improved (#7643)
Survey Creator
- Question type selector is displayed incorrectly (#5060)