Cart Buy Licenses Contact Support Login/Register
v 1.8.11

Version: v1.8.12, estimated release date is Wednesday, October 28, 2020, Total Issue Count: 2

Product Type Description
survey-library Bug Composite question doesn't clear values for its invisible questions

If survey.clearInvisibleValues is not "none", survey asks invsible question to clear their values. However it doesn't work for composite question.

survey-library Enhancement Add ability to use any Survey Element as data for survey

Add survey.editingObj: Base property. When it is not empty the survey will use editingObj properties as values. For example:

var survey = new Survey.SurveyModel(); 
survey.editingObj = anotherSurvey.getQuestionByName("question1");
var name = survey.getValue("name"); //name will be equal to question1
survey.setValue("isRequired", true); //question1 becomes required

The idea is to allow edit any object properties by our Survey

Version: v1.8.12, estimated release date is Wednesday, October 28, 2020, Total Issue Count: 2

Product
survey-library
Type
Bug
Description
Composite question doesn't clear values for its invisible questions

If survey.clearInvisibleValues is not "none", survey asks invsible question to clear their values. However it doesn't work for composite question.

Product
survey-library
Type
Enhancement
Description
Add ability to use any Survey Element as data for survey

Add survey.editingObj: Base property. When it is not empty the survey will use editingObj properties as values. For example:

var survey = new Survey.SurveyModel(); 
survey.editingObj = anotherSurvey.getQuestionByName("question1");
var name = survey.getValue("name"); //name will be equal to question1
survey.setValue("isRequired", true); //question1 becomes required

The idea is to allow edit any object properties by our Survey

Version: v1.8.11, released at Saturday, October 24, 2020, Total Issue Count: 7

Product Type Description
survey-library Bug onPropertyChanged or onItemValuePropertyChanged callbacks doesn't work with ":multiplevalues" property

onPropertyChanged or onItemValuePropertyChanged question callbacks doesn't work when item of ":multiplevalues" property checked/unchecked. For example, it leads to incorrect work of Undo/Redo functionality in Creator. UPD: Here is the simple example:

Survey.Serializer.addProperty("carowner", {name: "letters:multiplevalues", choices: ["A", "B", "C", "D", "E", "F"] });

SurveyJS Creator creates a list of checkboxes from "A", ... ,"F" and the value of the property is an array on letters.

Currently, the SurveyJS Library creates a standard property for this type, while it should create a wrapper for JavaScript array to override push/pop/unshift/splice functions and call property change notification.

survey-library Bug checkErrorMode equals "onComplete" doesn't work correctly with the server validation

There are two issues there. At first server validation, survey.onServerValidateQuestions event, executed on next page, and doesn't take into account that checkErrorMode is "onComplete". The second issue, on focusing question it doesn't change the current page and if the question with the error is located on a previous page, not the last one, end-user will not see any error and the last page will be the current one.

survey-library Bug Do not generate an empty rows error for matrix dynamic if it not requried and minRowCount is set

The original issue came from SurveyJS Support Desk.

survey-library Enhancement Add removeNonExisingRootKeys parameter into survey.clearIncorrectValues function

Add removeNonExisingRootKeys parameter, it is false by default.

//@param removeNonExisingRootKeys - set this parameter to true to remove keys from survey.data that doesn't have corresponded questions and calculated values
public clearIncorrectValues(removeNonExisingRootKeys: boolean = false);
survey-library Enhancement Add requiredIf property to the Panel
  /**
   * An expression that returns true or false. If it returns true the Panel becomes required.
   * The library runs the expression on survey start and on changing a question value. 
   * If the property is empty then isRequired property is used.
   * @see isRequired
   */
panel.requiredIf(): string;
survey-creator Bug Translation tab should not offer to translate properties with isSerialized attribute equals to true

Translation tab creates a group for non serializable properties. It should not.

custom-widgets Enhancement Add orientation property into bootstrap slider

Add orientation property:

{
 name: "orientation",
 default: "horizontal",
 choices: ["horizontal", "vertical"],
 category: "general"
}

Version: v1.8.11, released at Saturday, October 24, 2020, Total Issue Count: 7

onPropertyChanged or onItemValuePropertyChanged question callbacks doesn't work when item of ":multiplevalues" property checked/unchecked. For example, it leads to incorrect work of Undo/Redo functionality in Creator. UPD: Here is the simple example:

Survey.Serializer.addProperty("carowner", {name: "letters:multiplevalues", choices: ["A", "B", "C", "D", "E", "F"] });

SurveyJS Creator creates a list of checkboxes from "A", ... ,"F" and the value of the property is an array on letters.

Currently, the SurveyJS Library creates a standard property for this type, while it should create a wrapper for JavaScript array to override push/pop/unshift/splice functions and call property change notification.

There are two issues there. At first server validation, survey.onServerValidateQuestions event, executed on next page, and doesn't take into account that checkErrorMode is "onComplete". The second issue, on focusing question it doesn't change the current page and if the question with the error is located on a previous page, not the last one, end-user will not see any error and the last page will be the current one.

The original issue came from SurveyJS Support Desk.

Product
survey-library
Type
Enhancement
Description
Add removeNonExisingRootKeys parameter into survey.clearIncorrectValues function

Add removeNonExisingRootKeys parameter, it is false by default.

//@param removeNonExisingRootKeys - set this parameter to true to remove keys from survey.data that doesn't have corresponded questions and calculated values
public clearIncorrectValues(removeNonExisingRootKeys: boolean = false);
Product
survey-library
Type
Enhancement
Description
Add requiredIf property to the Panel
  /**
   * An expression that returns true or false. If it returns true the Panel becomes required.
   * The library runs the expression on survey start and on changing a question value. 
   * If the property is empty then isRequired property is used.
   * @see isRequired
   */
panel.requiredIf(): string;

Translation tab creates a group for non serializable properties. It should not.

Product
custom-widgets
Type
Enhancement
Description
Add orientation property into bootstrap slider

Add orientation property:

{
 name: "orientation",
 default: "horizontal",
 choices: ["horizontal", "vertical"],
 category: "general"
}

Version: v1.8.10, released at Wednesday, October 21, 2020, Total Issue Count: 20

Product Type Description
survey-library Bug The requiredQuestions progress bar works wrong
  1. Go to https://plnkr.co/edit/Ru1uuCWejE8mJXgT

  2. Click choice of required question and get this: image

  3. Then click next and get this: image

survey-library Bug React warning with slider component: setState(...):Cannot update during an existing state transition

Warning: setState(...): Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

this warning appears every time when i click next

survey-library Bug survey.getProgress() logs weird output on console

I have some questions that have visible: "false" That means they are invisible to users.

I want to track the survey completion progress. So, I have set the following: "progressBarType":"questions"

Then I have this in the js file: var surveyProgress = survey.getProgress(); console.log(surveyProgress);

Are you requesting a feature, reporting a bug or asking a question?

bug

asking question

What is the current behavior?

survey.getProgress() logs weird output on console. Even when the survey is answered fully then also the progress is not 100 percent.

What is the expected behavior?

If say 6 out of 23 visible questions are answered then the progress should be 26 percent.

How would you reproduce the current behavior (if this is a bug)?

survey.getProgress() logs incorrect output on console.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser: chrome
  • browser version: 84+
  • surveyjs platform (angular or react or jquery or knockout or vue): jquery
  • surveyjs version: 1.8.6
survey-library Enhancement File question: set desired dropEffect to "copy"
survey-library Enhancement Add autoComplete property into text Question

autoComplete property set the autocomplete attribute for html input tag.

survey-library Bug When survey checkErrorsMode is "onComplete" then the question with the first error is not focused

Let's say we have the following JSON:

{
      checkErrorsMode: "onComplete",
      pages: [
        {
          elements: [
            { type: "text", name: "q0" },
            { type: "text", name: "q1", isRequired: true },
          ],
        },
        {
          elements: [{ type: "text", name: "q2", isRequired: true }],
        },
        {
          elements: [{ type: "text", name: "q3", isRequired: true }],
        },
      ],
    }

If a user click button "Next" and then "Complete" without entering any data, then it should come back into first page and the question "q1", the first question with the error should be focused. Currently it doesn't work correctly, question "q0" is focused.

survey-library Enhancement Add settings.matrixMaxRowCountInCondition

By default we show one row with all columns in condition property editor. For example: dynamicMatrixQuestionName[0].columnName. You can change this property to show more rows, by setting it to 2, Survey.settings.matrixMaxRowCountInCondition = 2; will add colums for the second row as : dynamicMatrixQuestionName[1].columnName if matrix rowCount is 2 or bigger.

The original request came from SurveyJS Support Desk.

survey-library Enhancement react: Refactor render() and reactive properties

Disable reactive properties to change the element state during rendering by moving all rendering into protected renderElement(). Here is the render() function code in SurveyElementBase class:

  render(): JSX.Element {
    if (!this.canRender()) return null;
    this.isRenderingValue = true;
    var res = this.renderElement();
    this.isRenderingValue = false;
    return res;
  }

We should use renderElement() function in our react classes. The read-only protected isRendering property will block chaning state on changing the value react properties that can happen during react rendering.

survey-library Enhancement Add isUnique attribute into JSON property

This attribute works for objects that uses in arrays. Currently we use this attribute for matrixdropdowncolumn and calculatedvalue classes. Here is the definition of calculatedvalue.

Serializer.addClass(
  "calculatedvalue",
  [{name: "!name", isUnique: true}, "expression:expression", "includeIntoResult:boolean"],
  function() {
    return new CalculatedValue();
  },
  "base"
);

If you do not want to have a unique column names for matrix dropdown/dynamic please use the following code:

Survey.Serializer.findProperty("matrixdropdowncolumn", "name").isUnique = false;
survey-library Bug vue: tagbox doesn't work as a question cell in matrix dynamic/dropdown

There is a "undefined" error if you are using tagbox custom widget in the matrix dynamic/dropdown as a cell question.

survey-library Enhancement vue: refactor nofying Vue about property change

The idea is to avoid untificial notifying Vue on property change during rendering

survey-creator Enhancement Add support for dataList attribute in string property editor

We have the following property in text question now and we need to support it:

    {
      name: "autoComplete",
      dataList: [
        "name",
        "honorific-prefix",
        "given-name",
        "additional-name",
        "family-name",
        "honorific-suffix",
        "nickname",
        "organization-title",
        "username",
        "new-password",
        "current-password",
        "organization",
        "street-address",
        "address-line1",
        "address-line2",
        "address-line3",
        "address-level4",
        "address-level3",
        "address-level2",
        "address-level1",
        "country",
        "country-name",
        "postal-code",
        "cc-name",
        "cc-given-name",
        "cc-additional-name",
        "cc-family-name",
        "cc-number",
        "cc-exp",
        "cc-exp-month",
        "cc-exp-year",
        "cc-csc",
        "cc-type",
        "transaction-currency",
        "transaction-amount",
        "language",
        "bday",
        "bday-day",
        "bday-month",
        "bday-year",
        "sex",
        "url",
        "photo",
        "tel",
        "tel-country-code",
        "tel-national",
        "tel-area-code",
        "tel-local",
        "tel-local-prefix",
        "tel-local-suffix",
        "tel-extension",
        "email",
        "impp",
      ],
    }
survey-creator Enhancement Add support for isUnique attribute in JSON property

Show error and do not allow to set non-unique property value to the object. Please read more about isUnique property attribute here.

survey-creator Bug Nested properties editor allows to edit values even if properties are readOnly

Running the code, that makes columns property read-only, will still allow to modify name and title column properties in the table.

Survey.Serializer.findProperty("matrixdropdownbase", "columns").readOnly = true;

This code should make nested properties read-only as well.

survey-creator Bug After Removing the "title-image" Adorner, an invalid image placeholder shows up in Title
survey-creator Bug Items property editor shows the "Add New" button if allowAddRemoveItems option is set to false

See the https://surveyjs.answerdesk.io/ticket/details/t5490/setting-allowaddremoveitems-to-false-in-onsetpropertyeditoroptions-does-not-work thread for more details

Choices item adorner doesn't respect the allowAddRemoveItems option also

survey-creator Bug Title editor adorner doesn't respect the onGetPropertyReadOnly event handler
  creator.onGetPropertyReadOnly.add(function(sender, options){
      options.readOnly = isLoadingJSON || options.obj.wasInJSON;
  });

See the https://surveyjs.answerdesk.io/ticket/details/t5487/differentiate-between-questions-loaded-from-json-and-newly-added-questions-dynamic thread for more details

survey-creator Bug Choice items adorner doesn't respect the onElementAllowOperations event handler
  creator.onElementAllowOperations.add(function (sender, options) {
      var allow = !isLoadingJSON && !options.obj.wasInJSON;
      options.allowDelete = allow;
      options.allowEdit = allow;
      options.allowCopy = allow;
      options.allowAddToToolbox = allow;
      options.allowDragging = allow;
      options.allowChangeType = allow;
      options.allowChangeRequired = allow;
      options.allowShowHideTitle = allow;
  });

See the https://surveyjs.answerdesk.io/ticket/details/t5487/differentiate-between-questions-loaded-from-json-and-newly-added-questions-dynamic thread for more details

survey-analytics Enhancement Make top margin to fit ModeBar in SelectBasePlotly
custom-widgets Bug bootstrap datepicker has incorrect default dateFormat

It should be default: "mm/dd/yyyy" instead of default: "'mm/dd/yyyy'".

Version: v1.8.10, released at Wednesday, October 21, 2020, Total Issue Count: 20

Product
survey-library
Type
Bug
Description
The requiredQuestions progress bar works wrong
  1. Go to https://plnkr.co/edit/Ru1uuCWejE8mJXgT

  2. Click choice of required question and get this: image

  3. Then click next and get this: image

Warning: setState(...): Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

this warning appears every time when i click next

Product
survey-library
Type
Bug
Description
survey.getProgress() logs weird output on console

I have some questions that have visible: "false" That means they are invisible to users.

I want to track the survey completion progress. So, I have set the following: "progressBarType":"questions"

Then I have this in the js file: var surveyProgress = survey.getProgress(); console.log(surveyProgress);

Are you requesting a feature, reporting a bug or asking a question?

bug

asking question

What is the current behavior?

survey.getProgress() logs weird output on console. Even when the survey is answered fully then also the progress is not 100 percent.

What is the expected behavior?

If say 6 out of 23 visible questions are answered then the progress should be 26 percent.

How would you reproduce the current behavior (if this is a bug)?

survey.getProgress() logs incorrect output on console.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser: chrome
  • browser version: 84+
  • surveyjs platform (angular or react or jquery or knockout or vue): jquery
  • surveyjs version: 1.8.6
Product
survey-library
Type
Enhancement
Description
File question: set desired dropEffect to "copy"
Product
survey-library
Type
Enhancement
Description
Add autoComplete property into text Question

autoComplete property set the autocomplete attribute for html input tag.

Let's say we have the following JSON:

{
      checkErrorsMode: "onComplete",
      pages: [
        {
          elements: [
            { type: "text", name: "q0" },
            { type: "text", name: "q1", isRequired: true },
          ],
        },
        {
          elements: [{ type: "text", name: "q2", isRequired: true }],
        },
        {
          elements: [{ type: "text", name: "q3", isRequired: true }],
        },
      ],
    }

If a user click button "Next" and then "Complete" without entering any data, then it should come back into first page and the question "q1", the first question with the error should be focused. Currently it doesn't work correctly, question "q0" is focused.

Product
survey-library
Type
Enhancement
Description
Add settings.matrixMaxRowCountInCondition

By default we show one row with all columns in condition property editor. For example: dynamicMatrixQuestionName[0].columnName. You can change this property to show more rows, by setting it to 2, Survey.settings.matrixMaxRowCountInCondition = 2; will add colums for the second row as : dynamicMatrixQuestionName[1].columnName if matrix rowCount is 2 or bigger.

The original request came from SurveyJS Support Desk.

Product
survey-library
Type
Enhancement
Description
react: Refactor render() and reactive properties

Disable reactive properties to change the element state during rendering by moving all rendering into protected renderElement(). Here is the render() function code in SurveyElementBase class:

  render(): JSX.Element {
    if (!this.canRender()) return null;
    this.isRenderingValue = true;
    var res = this.renderElement();
    this.isRenderingValue = false;
    return res;
  }

We should use renderElement() function in our react classes. The read-only protected isRendering property will block chaning state on changing the value react properties that can happen during react rendering.

Product
survey-library
Type
Enhancement
Description
Add isUnique attribute into JSON property

This attribute works for objects that uses in arrays. Currently we use this attribute for matrixdropdowncolumn and calculatedvalue classes. Here is the definition of calculatedvalue.

Serializer.addClass(
  "calculatedvalue",
  [{name: "!name", isUnique: true}, "expression:expression", "includeIntoResult:boolean"],
  function() {
    return new CalculatedValue();
  },
  "base"
);

If you do not want to have a unique column names for matrix dropdown/dynamic please use the following code:

Survey.Serializer.findProperty("matrixdropdowncolumn", "name").isUnique = false;

There is a "undefined" error if you are using tagbox custom widget in the matrix dynamic/dropdown as a cell question.

Product
survey-library
Type
Enhancement
Description
vue: refactor nofying Vue about property change

The idea is to avoid untificial notifying Vue on property change during rendering

Product
survey-creator
Type
Enhancement
Description
Add support for dataList attribute in string property editor

We have the following property in text question now and we need to support it:

    {
      name: "autoComplete",
      dataList: [
        "name",
        "honorific-prefix",
        "given-name",
        "additional-name",
        "family-name",
        "honorific-suffix",
        "nickname",
        "organization-title",
        "username",
        "new-password",
        "current-password",
        "organization",
        "street-address",
        "address-line1",
        "address-line2",
        "address-line3",
        "address-level4",
        "address-level3",
        "address-level2",
        "address-level1",
        "country",
        "country-name",
        "postal-code",
        "cc-name",
        "cc-given-name",
        "cc-additional-name",
        "cc-family-name",
        "cc-number",
        "cc-exp",
        "cc-exp-month",
        "cc-exp-year",
        "cc-csc",
        "cc-type",
        "transaction-currency",
        "transaction-amount",
        "language",
        "bday",
        "bday-day",
        "bday-month",
        "bday-year",
        "sex",
        "url",
        "photo",
        "tel",
        "tel-country-code",
        "tel-national",
        "tel-area-code",
        "tel-local",
        "tel-local-prefix",
        "tel-local-suffix",
        "tel-extension",
        "email",
        "impp",
      ],
    }
Product
survey-creator
Type
Enhancement
Description
Add support for isUnique attribute in JSON property

Show error and do not allow to set non-unique property value to the object. Please read more about isUnique property attribute here.

Running the code, that makes columns property read-only, will still allow to modify name and title column properties in the table.

Survey.Serializer.findProperty("matrixdropdownbase", "columns").readOnly = true;

This code should make nested properties read-only as well.

See the https://surveyjs.answerdesk.io/ticket/details/t5490/setting-allowaddremoveitems-to-false-in-onsetpropertyeditoroptions-does-not-work thread for more details

Choices item adorner doesn't respect the allowAddRemoveItems option also

  creator.onGetPropertyReadOnly.add(function(sender, options){
      options.readOnly = isLoadingJSON || options.obj.wasInJSON;
  });

See the https://surveyjs.answerdesk.io/ticket/details/t5487/differentiate-between-questions-loaded-from-json-and-newly-added-questions-dynamic thread for more details

  creator.onElementAllowOperations.add(function (sender, options) {
      var allow = !isLoadingJSON && !options.obj.wasInJSON;
      options.allowDelete = allow;
      options.allowEdit = allow;
      options.allowCopy = allow;
      options.allowAddToToolbox = allow;
      options.allowDragging = allow;
      options.allowChangeType = allow;
      options.allowChangeRequired = allow;
      options.allowShowHideTitle = allow;
  });

See the https://surveyjs.answerdesk.io/ticket/details/t5487/differentiate-between-questions-loaded-from-json-and-newly-added-questions-dynamic thread for more details

Product
survey-analytics
Type
Enhancement
Description
Make top margin to fit ModeBar in SelectBasePlotly
Product
custom-widgets
Type
Bug
Description
bootstrap datepicker has incorrect default dateFormat

It should be default: "mm/dd/yyyy" instead of default: "'mm/dd/yyyy'".

Version: v1.8.9, released at Wednesday, October 14, 2020, Total Issue Count: 10

Product Type Description
survey-library Bug End-user can drop/add a file into read-only file question

If a file question read-only, then choose file button is disabled, but drag-over area still accept files, also it should not.

survey-library Enhancement Improve API for adding a new page

There is no way to insert a new page as the first one or the second. We need to add a parameter into survey.addNewPage and survey.addPage functions.

  /**
   * Adds an existing page to the survey.
   * @param page a newly added page
   * @param index - a page index to where insert a page. It is -1 by default and the page will be added into the end.
   * @see addNewPage
   */
  public addPage(page: PageModel, index: number = -1);
  /**
   * Creates a new page and adds it to a survey. Generates a new name if the `name` parameter is not specified.
   * @param name a page name
   * @param index - a page index to where insert a new page. It is -1 by default and the page will be added into the end.
   * @see addPage
   */
  public addNewPage(name: string = null, index: number = -1) ;

Additionally makes the survey.createNewPage() function public:

  /**
   * Creates and returns a new page, but do not add it into the survey.
   * You can use addPage(page) function to add it into survey later.
   * @see addPage
   * @see addNewPage
   */
  public createNewPage(name: string): PageModel;

Example of using:

var newPage = survey.createNewPage("new Page");
newPage.addNewQuestion("text", "newQuestion");
survey.addPage(newPage, 0);
survey.currentPageNo = 0;
survey-library Bug Locale of progressbar does not change

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

If you change the language of the survey, the locale of the progressbar does not change.

What is the expected behavior?

Progressbar should update too.

How would you reproduce the current behavior (if this is a bug)?

Change the locale. https://plnkr.co/edit/0o1cxceHuYOFXKyq

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/0o1cxceHuYOFXKyq

Specify your

  • browser: Chrome
  • browser version: 86
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.8.8
survey-library Bug react: SurveyWindow component renders window header twice

SurveyWindow should renders window header only one time.

survey-library Bug Localizable string can generate a warning in react

You can get the followng warning: "Warning: Can't perform a React state update on an unmounted component" because of localizable string did not perform correctly unmount.

survey-library Enhancement Make survey.core works under NodeJS

The following code should work and should not return any error in NodeJS:

const Survey = require("./survey.core");

var survey = new Survey.SurveyModel({
  pages: [
    {
      elements: [
        { type: "text", name: "q1", isRequired: true },
        { type: "text", name: "q2" },
      ],
    },
    {
      elements: [
        { type: "text", name: "q2" },
        { type: "text", name: "q3" },
      ],
    },
  ],
});
survey.nextPage();
console.log(survey.pages.length.toString());
survey-analytics Enhancement Create sample how to visualize text question with chart visualizer

See the https://surveyjs.answerdesk.io/ticket/details/t5424/analytics-angular-register-visualizer-as-selectbaseplotly-for-rating-type-question thread for more details:

I want to render visualization with bar/pie/doughnut for text type question. (For example: the question is for postal_code)

survey-analytics Bug Top N option should work for all chart types
custom-widgets Enhancement Allow add new tag in the tagbox widget

Select2 optinally allows to add new tag. We should add this option as: allowAddNewTag:boolean, false by default.

custom-widgets Bug input custom widget: Cannot read property 'getemptymask' of undefined

TypeError: Cannot read property 'getemptymask' of undefined at HTMLInputElement.el.onblur (inputmask.js:98) at removeChild (react-dom.js:1364) at Object.processUpdates (react-dom.js:1510) at Object.dangerouslyProcessChildrenUpdates [as processChildrenUpdates] (react-dom.js:6766) at processQueue (react-dom.js:10215) at ReactDOMComponent._updateChildren (react-dom.js:10431) at ReactDOMComponent.updateChildren (react-dom.js:10375) at ReactDOMComponent._updateDOMChildren (react-dom.js:6357) at ReactDOMComponent.updateComponent (react-dom.js:6171) at ReactDOMComponent.receiveComponent (react-dom.js:6133)

Json "elements": [ { "type": "text", "inputType": "date", "inputMask": "datetime", "inputFormat": "dd/mm/yyyy", "name": "QBday", "startWithNewLine": false, "title": "What is your Birthday?", //"dateFormat": "dd/mm/yy", "isRequired": true, "validators": [ { "type": "expression", "text": "You should be atleast 10 years or older", "expression": "age() >= 10" } ], "max": "31/12/2999", "description": "Remember age is just a number :-)" } ]

In which type of situation, this error appears in surveyjs

Version: v1.8.9, released at Wednesday, October 14, 2020, Total Issue Count: 10

Product
survey-library
Type
Bug
Description
End-user can drop/add a file into read-only file question

If a file question read-only, then choose file button is disabled, but drag-over area still accept files, also it should not.

Product
survey-library
Type
Enhancement
Description
Improve API for adding a new page

There is no way to insert a new page as the first one or the second. We need to add a parameter into survey.addNewPage and survey.addPage functions.

  /**
   * Adds an existing page to the survey.
   * @param page a newly added page
   * @param index - a page index to where insert a page. It is -1 by default and the page will be added into the end.
   * @see addNewPage
   */
  public addPage(page: PageModel, index: number = -1);
  /**
   * Creates a new page and adds it to a survey. Generates a new name if the `name` parameter is not specified.
   * @param name a page name
   * @param index - a page index to where insert a new page. It is -1 by default and the page will be added into the end.
   * @see addPage
   */
  public addNewPage(name: string = null, index: number = -1) ;

Additionally makes the survey.createNewPage() function public:

  /**
   * Creates and returns a new page, but do not add it into the survey.
   * You can use addPage(page) function to add it into survey later.
   * @see addPage
   * @see addNewPage
   */
  public createNewPage(name: string): PageModel;

Example of using:

var newPage = survey.createNewPage("new Page");
newPage.addNewQuestion("text", "newQuestion");
survey.addPage(newPage, 0);
survey.currentPageNo = 0;
Product
survey-library
Type
Bug
Description
Locale of progressbar does not change

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

If you change the language of the survey, the locale of the progressbar does not change.

What is the expected behavior?

Progressbar should update too.

How would you reproduce the current behavior (if this is a bug)?

Change the locale. https://plnkr.co/edit/0o1cxceHuYOFXKyq

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/0o1cxceHuYOFXKyq

Specify your

  • browser: Chrome
  • browser version: 86
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.8.8
Product
survey-library
Type
Bug
Description
react: SurveyWindow component renders window header twice

SurveyWindow should renders window header only one time.

Product
survey-library
Type
Bug
Description
Localizable string can generate a warning in react

You can get the followng warning: "Warning: Can't perform a React state update on an unmounted component" because of localizable string did not perform correctly unmount.

Product
survey-library
Type
Enhancement
Description
Make survey.core works under NodeJS

The following code should work and should not return any error in NodeJS:

const Survey = require("./survey.core");

var survey = new Survey.SurveyModel({
  pages: [
    {
      elements: [
        { type: "text", name: "q1", isRequired: true },
        { type: "text", name: "q2" },
      ],
    },
    {
      elements: [
        { type: "text", name: "q2" },
        { type: "text", name: "q3" },
      ],
    },
  ],
});
survey.nextPage();
console.log(survey.pages.length.toString());
Product
survey-analytics
Type
Enhancement
Description
Create sample how to visualize text question with chart visualizer

See the https://surveyjs.answerdesk.io/ticket/details/t5424/analytics-angular-register-visualizer-as-selectbaseplotly-for-rating-type-question thread for more details:

I want to render visualization with bar/pie/doughnut for text type question. (For example: the question is for postal_code)

Product
survey-analytics
Type
Bug
Description
Top N option should work for all chart types
Product
custom-widgets
Type
Enhancement
Description
Allow add new tag in the tagbox widget

Select2 optinally allows to add new tag. We should add this option as: allowAddNewTag:boolean, false by default.

Product
custom-widgets
Type
Bug
Description
input custom widget: Cannot read property 'getemptymask' of undefined

TypeError: Cannot read property 'getemptymask' of undefined at HTMLInputElement.el.onblur (inputmask.js:98) at removeChild (react-dom.js:1364) at Object.processUpdates (react-dom.js:1510) at Object.dangerouslyProcessChildrenUpdates [as processChildrenUpdates] (react-dom.js:6766) at processQueue (react-dom.js:10215) at ReactDOMComponent._updateChildren (react-dom.js:10431) at ReactDOMComponent.updateChildren (react-dom.js:10375) at ReactDOMComponent._updateDOMChildren (react-dom.js:6357) at ReactDOMComponent.updateComponent (react-dom.js:6171) at ReactDOMComponent.receiveComponent (react-dom.js:6133)

Json "elements": [ { "type": "text", "inputType": "date", "inputMask": "datetime", "inputFormat": "dd/mm/yyyy", "name": "QBday", "startWithNewLine": false, "title": "What is your Birthday?", //"dateFormat": "dd/mm/yy", "isRequired": true, "validators": [ { "type": "expression", "text": "You should be atleast 10 years or older", "expression": "age() >= 10" } ], "max": "31/12/2999", "description": "Remember age is just a number :-)" } ]

In which type of situation, this error appears in surveyjs

Version: v1.8.8, released at Saturday, October 10, 2020, Total Issue Count: 9

Product Type Description
survey-library Enhancement Add survey.runTriggers() function
  /**
   * Run all triggers that performs on value changed and not on moving to the next page.
   */
  public runTriggers(): void;

You can use this function if you have modified your survey difinition and add new triggers and want to run them on setting the previous entered data:

survey.data = previousEnteredData;
survey.runTriggers(); //run triggers like copyvalue, setvalue, runexpression.
survey-library Bug Vue: undefined click handler error on clicking checkbox items in modern theme

The original issue came from SurveyJS support desk. On clicking checkbox items in modern theme vue generates an error

survey-library Bug Expression parser removes quotes for string constants

The following code new ConditionsParser().parseExpression("{val} == '000'").toString() will return " == 000". What is worth the following code:

var expr = "{val} == '000'";
expr = new ConditionsParser().parseExpression(expr).toString();
expr = new ConditionsParser().parseExpression(expr).toString();

will set expr to "{val} == 0" instead of keep the same value "{val} == '000'"

survey-creator Enhancement Add bindings property editor

Currently we have only two bindable property: rowCount in matrix dynamic and panelCount in panel dynamic. We will add bindable properties based on our users requests and their scenarios. Bindable property - you can create a two way binding between a question value and another question property. The following JSON set the binding for dynamic panel panelCount property:

  {
   "elements": [
    {
     "type": "text",
     "name": "elCount",
     "inputType": "number",
     "defaultValue": 3
    },
    {
     "type": "paneldynamic",
     "name": "panel1",
     "bindings": {
      "panelCount": "elCount"
     }
    }
   ]
  }

On changing elCount question value, the panel count for panel dynamic is changing and vise versa, on adding/removing panels in the panel dynamic, the value in elCount is changing accordingly.

survey-creator Bug Incorrect Rating "Rate step" HTML validation

Are you requesting a feature, reporting a bug or ask a question?

A bug.

What is the current behavior?

Rating "Rate step" HTML5 validation error on correct value. image

What is the expected behavior?

No HTML5 validation errors.

How would you reproduce the current behavior (if this is a bug)?

It happens when Survey Creator is embedded on a page and HTML5 form validation triggered.

Specify your

  • browser: Google Chrome 85.0.4183.121 (Official Build) (64-bit)
  • editor version: 1.8.6
survey-creator Enhancement Embeded tab, show surveyPostId in JSON in

Simplify the code and instead of using onComplete event, use surveyPostId survey property.

survey-creator Bug Surveys that we create inside Creator for internal use should use Creator localization locale

Setting Survey Creator localization locale as: SurveyCreator.localization.currentLocale = "fr"; doesn't set locale 'fr' for surveys that we use in condition property editor. As result localization strings for internal surveys are still in "en" locale.

survey-creator Bug Add quotes for expression constants as "000"

If an end-user enters into condition value in the condition property editor value as "012" or "000" we should recognize that it is not a number, but string and put it into quotes as: {val} == '000'`.

survey-creator Bug Editing choices for a column in dynamic/dropdown matrices is broken

The original issue came from SurveyJS Support Desk.

Version: v1.8.8, released at Saturday, October 10, 2020, Total Issue Count: 9

Product
survey-library
Type
Enhancement
Description
Add survey.runTriggers() function
  /**
   * Run all triggers that performs on value changed and not on moving to the next page.
   */
  public runTriggers(): void;

You can use this function if you have modified your survey difinition and add new triggers and want to run them on setting the previous entered data:

survey.data = previousEnteredData;
survey.runTriggers(); //run triggers like copyvalue, setvalue, runexpression.

The original issue came from SurveyJS support desk. On clicking checkbox items in modern theme vue generates an error

Product
survey-library
Type
Bug
Description
Expression parser removes quotes for string constants

The following code new ConditionsParser().parseExpression("{val} == '000'").toString() will return " == 000". What is worth the following code:

var expr = "{val} == '000'";
expr = new ConditionsParser().parseExpression(expr).toString();
expr = new ConditionsParser().parseExpression(expr).toString();

will set expr to "{val} == 0" instead of keep the same value "{val} == '000'"

Product
survey-creator
Type
Enhancement
Description
Add bindings property editor

Currently we have only two bindable property: rowCount in matrix dynamic and panelCount in panel dynamic. We will add bindable properties based on our users requests and their scenarios. Bindable property - you can create a two way binding between a question value and another question property. The following JSON set the binding for dynamic panel panelCount property:

  {
   "elements": [
    {
     "type": "text",
     "name": "elCount",
     "inputType": "number",
     "defaultValue": 3
    },
    {
     "type": "paneldynamic",
     "name": "panel1",
     "bindings": {
      "panelCount": "elCount"
     }
    }
   ]
  }

On changing elCount question value, the panel count for panel dynamic is changing and vise versa, on adding/removing panels in the panel dynamic, the value in elCount is changing accordingly.

Product
survey-creator
Type
Bug
Description
Incorrect Rating "Rate step" HTML validation

Are you requesting a feature, reporting a bug or ask a question?

A bug.

What is the current behavior?

Rating "Rate step" HTML5 validation error on correct value. image

What is the expected behavior?

No HTML5 validation errors.

How would you reproduce the current behavior (if this is a bug)?

It happens when Survey Creator is embedded on a page and HTML5 form validation triggered.

Specify your

  • browser: Google Chrome 85.0.4183.121 (Official Build) (64-bit)
  • editor version: 1.8.6
Product
survey-creator
Type
Enhancement
Description
Embeded tab, show surveyPostId in JSON in

Simplify the code and instead of using onComplete event, use surveyPostId survey property.

Setting Survey Creator localization locale as: SurveyCreator.localization.currentLocale = "fr"; doesn't set locale 'fr' for surveys that we use in condition property editor. As result localization strings for internal surveys are still in "en" locale.

Product
survey-creator
Type
Bug
Description
Add quotes for expression constants as "000"

If an end-user enters into condition value in the condition property editor value as "012" or "000" we should recognize that it is not a number, but string and put it into quotes as: {val} == '000'`.

Product
survey-creator
Type
Bug
Description
Editing choices for a column in dynamic/dropdown matrices is broken

The original issue came from SurveyJS Support Desk.

Version: v1.8.7, released at Tuesday, October 6, 2020, Total Issue Count: 14

Product Type Description
survey-library Bug Triggers referencing question names with dot not working

Are you requesting a feature, reporting a bug or asking a question?

bug

What is the current behavior?

When using a dot in a question name triggers do not work

What is the expected behavior?

Triggers work with dots in question name

How would you reproduce the current behavior (if this is a bug)?

Create a question with a dot in question name. Use a trigger with this question name.

Provide the test code and the tested page URL (if applicable)

Test code

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choices": [
      "item1",
      "item2",
      "item3",
      "item4"
     ]
    },
    {
     "type": "text",
     "name": "question.name2"
    }
   ]
  }
 ],
 "triggers": [
  {
   "type": "setvalue",
   "expression": "{question1} anyof ['item1', 'item2']",
   "setToName": "question.name2",
   "setValue": "one"
  },
  {
   "type": "setvalue",
   "expression": "{question1} anyof ['item3', 'item4']",
   "setToName": "question.name2",
   "setValue": "two"
  }
 ]
}

Specify your

  • browser: Chrome
  • browser version: 85.0.4183.102
  • surveyjs platform (angular or react or jquery or knockout or vue): vue
  • survey-vue version: 1.8.5
survey-library Bug Rating question set value as string for react and vue

Event if rating values are numbers, for react and vue the result becomes as string, "3", instead of 3.

survey-library Bug showInvisibleElements not working for choices

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

showInvisibleElements does only affect choicesVisibleIf but not:

  • visibleIf of choices/rows/columns
  • columnsVisibleIf
  • rowsVisibleIf

What is the expected behavior?

All visibility conditions should be affected.

How would you reproduce the current behavior (if this is a bug)?

Set showInvisibleElements to true and see if the elements get visible.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/Yb6iHIuO4s51xmH4 The option "Tesla" should be visible in the first question.

Specify your

  • browser: Chrome
  • browser version: 85
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version: 1.8.4
survey-library Enhancement Add survey.getUpdatedQuestionNo event
  /**
   * Use this event to change the question no in code. If you want to remove question numbering then set showQuestionNumbers to "off".
   * <br/> `sender` - the survey object that fires the event.
   * <br/> `options.no` - a calculated question no, based on question `visibleIndex`, survey `.questionStartIndex` properties. You can change it.
   * <br/> `options.question` - a question object.
   * @see showQuestionNumbers
   * @see questionStartIndex
   */
  public onGetQuestionNo: Event<
    (sender: SurveyModel, options: any) => any,
    any
  > = new Event<(sender: SurveyModel, options: any) => any, any>();

Example of using:

  survey.onGetQuestionNo.add(function (sender, options) {
    options.no = "a.b." + options.no + ")";
  });

or

  survey.onGetQuestionNo.add(function (sender, options) {
    options.no = "a.b." + (options.question.visibleIndex + 1) + ")";
  });
survey-library Bug setvalue trigger doesn't work correctly for matrix dropdown cells if destination row is empty

The following JSON will not work, untill the second matrix first row is empty:

{
    questions: [
      {
        name: "q1",
        type: "matrixdropdown",
        columns: [{ name: "col1" }, { name: "col2" }],
        rows: ["row1", "row2"],
        cellType: "text",
      },
      {
        name: "q2",
        type: "matrixdropdown",
        columns: [{ name: "col3" }, { name: "col4" }],
        rows: ["row3", "row4"],
        cellType: "text",
      },
    ],
    triggers: [
      {
        type: "copyvalue",
        expression: "{q1.row1.col1} notempty",
        fromName: "q1.row1.col1",
        setToName: "q2.row3.col3",
      },
    ],
  }
survey-library Bug question.defaultValue and survey.clearInvisibleValues='onHidden' doesn't work correct together

Here is the small JSON

{
      clearInvisibleValues: "onHidden",
      elements: [
        {
          name: "q1",
          type: "text",
          defaultValue: 1,
          visible: false,
        },
      ],
    }

By default question is invisible, but it has value since defaultValue set the value into question. However, it is not expected, since survey.clearInvisibleValues is 'onHidden'. On making the question visible, and then invisible and visible again, the value becomes empty, also it would be expected to have it 1, the defaultValue. We should keep the value empty until the question is invisible and set the defaultValue on making the question visible when survey.clearInvisibleValues is 'onHidden'.

survey-library Bug Vue infinite update loop in SurveyMatrix

Are you requesting a feature, reporting a bug or asking a question?

Reporting a BUG

What is the current behavior?

When using Matrix with Vue, when you choose an answer it becomes unresponsive for a few seconds, depending on how long is the matrix, then in console it throws a error

vue.js:634 [Vue warn]: You may have an infinite update loop in a component render function.

found in

---> <SurveyMatrix> at src/vue/matrix.vue

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

https://plnkr.co/edit/9RhKmqvlkSaoqs2k

Specify your

  • browser: Chrome
  • browser version: 85.0.4183.121
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue
  • surveyjs version: 1.8.6
survey-library Bug {question.length} may return undefined if q becomes undefined

We are returning 0 for even if question value is undefined and not an empty array. However, if the question1 value was the array, and then it becomes an undefined/null value then we start to return undefined, on using internal ProcessValue.getValueInfo() function. It uses the cached path and if a value in this path becomes undefined then it returns undefined as well. We should return 0. It is the expected value in an expression in this case.

The issue was introduced several months ago due perfomance optimization - we do not create the path for the complex values "a.b.c.d" on getting the value every time.

survey-library Enhancement Add access to a question for a custom function that calls from validator

The following code should work:

  FunctionFactory.Instance.register("getCustValue", function getCustValue(
    params
  ) {
   //access to a question instance without passing it into params as question name: this.survey.getQuestionByName(params[0])
    return this.question.inputType == "number" ? this.question.value : 0;
  });
  var survey = new SurveyModel({
    elements: [
      {
        name: "q1",
        type: "text",
        validators: [{ type: "expression", expression: "getCustValue() > 5" }],
      },
    ],
  });
survey-creator Bug Changes into new added question onQuestionAdded event generates addition undo transactions

If there is a code like this:

  creator.onQuestionAdded.add(function (sender, options) {
    options.question.title = "new title";
  });

then it would require to click two times on "Undo" to remove the question. Changing title will be added as a new undo transaction. If there are several properties changes, then more "Undo" clicks would be required. The same story with onPageAdded and onPanelAdded events.

survey-creator Enhancement Update property grid element selector on changing any property of the selected object

creator.onGetObjectTextInPropertyGrid event can use any property of the selected object, not only name and title. Right now it is called on changing name and title properties only.

survey-creator Enhancement Force to update text in property grid element selector for a non selected element

Call the following code for example: creator.updateObjectTextInPropertyGrid(creator.survey.getQuestionByName("question1");

survey-creator Enhancement Allow to show help for properties in a property grid

To show the help in the property grid, you have to modify your localization as the following:

//Get default localization strings
var curStrings = SurveyCreator.localization.getLocale("");
curStrings.pehelp.title = "Here is the help for title property for all object types";
//If we do not define question_title/page_title/survey_title, then title help will be used.
curStrings.pehelp.question_title = "Here is the help for question title property";
curStrings.pehelp.page_title = "Here is the help for page title property";
curStrings.pehelp.survey_title = "Here is the help for survey title property";
survey-analytics Enhancement Make it possible to pre-process chart data before display

Some scenarios can require to pre-process chart data before display: hide items with zero answers count, show top N or other similar cases. We need to support some cases out of the box and provide a mechanism to implement such user requirements.

See the https://surveyjs.answerdesk.io/ticket/details/t5339/analytics-angular-hide-not-chosen-choices-from-the-visualization https://surveyjs.answerdesk.io/ticket/details/t5348/analytics-angular-how-to-set-orderbyansweres-as-desc-on-initialize-bar-chart threads for more details

Version: v1.8.7, released at Tuesday, October 6, 2020, Total Issue Count: 14

Product
survey-library
Type
Bug
Description
Triggers referencing question names with dot not working

Are you requesting a feature, reporting a bug or asking a question?

bug

What is the current behavior?

When using a dot in a question name triggers do not work

What is the expected behavior?

Triggers work with dots in question name

How would you reproduce the current behavior (if this is a bug)?

Create a question with a dot in question name. Use a trigger with this question name.

Provide the test code and the tested page URL (if applicable)

Test code

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choices": [
      "item1",
      "item2",
      "item3",
      "item4"
     ]
    },
    {
     "type": "text",
     "name": "question.name2"
    }
   ]
  }
 ],
 "triggers": [
  {
   "type": "setvalue",
   "expression": "{question1} anyof ['item1', 'item2']",
   "setToName": "question.name2",
   "setValue": "one"
  },
  {
   "type": "setvalue",
   "expression": "{question1} anyof ['item3', 'item4']",
   "setToName": "question.name2",
   "setValue": "two"
  }
 ]
}

Specify your

  • browser: Chrome
  • browser version: 85.0.4183.102
  • surveyjs platform (angular or react or jquery or knockout or vue): vue
  • survey-vue version: 1.8.5
Product
survey-library
Type
Bug
Description
Rating question set value as string for react and vue

Event if rating values are numbers, for react and vue the result becomes as string, "3", instead of 3.

Product
survey-library
Type
Bug
Description
showInvisibleElements not working for choices

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

showInvisibleElements does only affect choicesVisibleIf but not:

  • visibleIf of choices/rows/columns
  • columnsVisibleIf
  • rowsVisibleIf

What is the expected behavior?

All visibility conditions should be affected.

How would you reproduce the current behavior (if this is a bug)?

Set showInvisibleElements to true and see if the elements get visible.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/Yb6iHIuO4s51xmH4 The option "Tesla" should be visible in the first question.

Specify your

  • browser: Chrome
  • browser version: 85
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version: 1.8.4
Product
survey-library
Type
Enhancement
Description
Add survey.getUpdatedQuestionNo event
  /**
   * Use this event to change the question no in code. If you want to remove question numbering then set showQuestionNumbers to "off".
   * <br/> `sender` - the survey object that fires the event.
   * <br/> `options.no` - a calculated question no, based on question `visibleIndex`, survey `.questionStartIndex` properties. You can change it.
   * <br/> `options.question` - a question object.
   * @see showQuestionNumbers
   * @see questionStartIndex
   */
  public onGetQuestionNo: Event<
    (sender: SurveyModel, options: any) => any,
    any
  > = new Event<(sender: SurveyModel, options: any) => any, any>();

Example of using:

  survey.onGetQuestionNo.add(function (sender, options) {
    options.no = "a.b." + options.no + ")";
  });

or

  survey.onGetQuestionNo.add(function (sender, options) {
    options.no = "a.b." + (options.question.visibleIndex + 1) + ")";
  });

The following JSON will not work, untill the second matrix first row is empty:

{
    questions: [
      {
        name: "q1",
        type: "matrixdropdown",
        columns: [{ name: "col1" }, { name: "col2" }],
        rows: ["row1", "row2"],
        cellType: "text",
      },
      {
        name: "q2",
        type: "matrixdropdown",
        columns: [{ name: "col3" }, { name: "col4" }],
        rows: ["row3", "row4"],
        cellType: "text",
      },
    ],
    triggers: [
      {
        type: "copyvalue",
        expression: "{q1.row1.col1} notempty",
        fromName: "q1.row1.col1",
        setToName: "q2.row3.col3",
      },
    ],
  }

Here is the small JSON

{
      clearInvisibleValues: "onHidden",
      elements: [
        {
          name: "q1",
          type: "text",
          defaultValue: 1,
          visible: false,
        },
      ],
    }

By default question is invisible, but it has value since defaultValue set the value into question. However, it is not expected, since survey.clearInvisibleValues is 'onHidden'. On making the question visible, and then invisible and visible again, the value becomes empty, also it would be expected to have it 1, the defaultValue. We should keep the value empty until the question is invisible and set the defaultValue on making the question visible when survey.clearInvisibleValues is 'onHidden'.

Product
survey-library
Type
Bug
Description
Vue infinite update loop in SurveyMatrix

Are you requesting a feature, reporting a bug or asking a question?

Reporting a BUG

What is the current behavior?

When using Matrix with Vue, when you choose an answer it becomes unresponsive for a few seconds, depending on how long is the matrix, then in console it throws a error

vue.js:634 [Vue warn]: You may have an infinite update loop in a component render function.

found in

---> <SurveyMatrix> at src/vue/matrix.vue

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

https://plnkr.co/edit/9RhKmqvlkSaoqs2k

Specify your

  • browser: Chrome
  • browser version: 85.0.4183.121
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue
  • surveyjs version: 1.8.6
Product
survey-library
Type
Bug
Description
{question.length} may return undefined if q becomes undefined

We are returning 0 for even if question value is undefined and not an empty array. However, if the question1 value was the array, and then it becomes an undefined/null value then we start to return undefined, on using internal ProcessValue.getValueInfo() function. It uses the cached path and if a value in this path becomes undefined then it returns undefined as well. We should return 0. It is the expected value in an expression in this case.

The issue was introduced several months ago due perfomance optimization - we do not create the path for the complex values "a.b.c.d" on getting the value every time.

Product
survey-library
Type
Enhancement
Description
Add access to a question for a custom function that calls from validator

The following code should work:

  FunctionFactory.Instance.register("getCustValue", function getCustValue(
    params
  ) {
   //access to a question instance without passing it into params as question name: this.survey.getQuestionByName(params[0])
    return this.question.inputType == "number" ? this.question.value : 0;
  });
  var survey = new SurveyModel({
    elements: [
      {
        name: "q1",
        type: "text",
        validators: [{ type: "expression", expression: "getCustValue() > 5" }],
      },
    ],
  });

If there is a code like this:

  creator.onQuestionAdded.add(function (sender, options) {
    options.question.title = "new title";
  });

then it would require to click two times on "Undo" to remove the question. Changing title will be added as a new undo transaction. If there are several properties changes, then more "Undo" clicks would be required. The same story with onPageAdded and onPanelAdded events.

creator.onGetObjectTextInPropertyGrid event can use any property of the selected object, not only name and title. Right now it is called on changing name and title properties only.

Call the following code for example: creator.updateObjectTextInPropertyGrid(creator.survey.getQuestionByName("question1");

Product
survey-creator
Type
Enhancement
Description
Allow to show help for properties in a property grid

To show the help in the property grid, you have to modify your localization as the following:

//Get default localization strings
var curStrings = SurveyCreator.localization.getLocale("");
curStrings.pehelp.title = "Here is the help for title property for all object types";
//If we do not define question_title/page_title/survey_title, then title help will be used.
curStrings.pehelp.question_title = "Here is the help for question title property";
curStrings.pehelp.page_title = "Here is the help for page title property";
curStrings.pehelp.survey_title = "Here is the help for survey title property";
Product
survey-analytics
Type
Enhancement
Description
Make it possible to pre-process chart data before display

Some scenarios can require to pre-process chart data before display: hide items with zero answers count, show top N or other similar cases. We need to support some cases out of the box and provide a mechanism to implement such user requirements.

See the https://surveyjs.answerdesk.io/ticket/details/t5339/analytics-angular-hide-not-chosen-choices-from-the-visualization https://surveyjs.answerdesk.io/ticket/details/t5348/analytics-angular-how-to-set-orderbyansweres-as-desc-on-initialize-bar-chart threads for more details

Version: v1.8.5, released at Wednesday, September 30, 2020, Total Issue Count: 13

Product Type Description
survey-library Bug Fix "sv-matrix__text--checked" style name

We have incorrect unicode symbol "c" in this style name. It produces issues.

survey-library Bug Signature Pad has black background for dataFormat JPEG

On setting dateFormat to "JPEG" the background turns to black.

survey-library Bug text question: min, max and step properties can not be loaded from JSON

The following JSON doesn't work:

{
    "type": "text",
    "name": "question1",
    "min": 0,
    "max": 100,
    "inputType": "number"
}

It will work if min and max properties put after inputType property. It should work in all cases.

survey-library Enhancement Introduce question.defaultValueExpression and text question.min/maxValueExpression properties

Current we require to use "=" in properties defaultValue and min/max to tell SurveyJS that we are entering the expression. For example: defaultValue: "=today(-1)", it will set the value by default to yesterday. Unfortunately, it is hard to create a decent UI for this type of property type, when it can be date or number or expression. We decided to introduce new properties that will come into Logic category. defaultValueExpression and minValueExpression/maxValueExpression where user can enter the expression in expression property editor.

Old JSON will continue to work, but on loading from JSON other properties will be used. For example defaultValue: "=today(-1)" will be converted into defaultValueExpression: "today(-1)".

survey-library Enhancement Introduce lazy rendering mode for page/panel rows content

At this moment all logically visible questions on a page or panel rendered always during page rendering. If one has a lot of questions (especially complex questions like matrices) this heavily impact survey page rendering time.

Proposed solution: not to render content (questions) of rows that in the first moment are out of the scrolling area and not visible in the current viewport.

survey-creator Enhancement Allow to restrict expression operators

The original request came from SurveyJS support desk. Currently, there is no way to remove some operators. From v1.8.5 it can be done by using this code:

  delete SurveyCreator.SurveyPropertyEditorFactory.operators.contains;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.notcontains;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.anyof;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.allof;

It will remove "contains", "notcontains", "anyof" and "allof".

survey-creator Bug Themes in Embeded Tab is out of date

We have different theme engine and default theme is "modern" that uses "modern.css" file. Embeded Tab becomes out of date. It has to be fixed.

survey-creator Enhancement Make expression property editor compact

Move help text into invisible by default area. Make the editor height smaller.

survey-creator Bug Make undo/redo buttons in JSON editor enabled only if corresponding actions are available

At this moment Undo/Redo buttons in JSON editor are always available. This looks weird. And leads to unexpected behavior if pressed. See the https://surveyjs.answerdesk.io/ticket/details/t5321/undo-and-redo-issues-in-json-editor-tab thread for more details.

survey-analytics Enhancement Implement an event to configure the export chart to image parameters

This should allow to change image format, file name and exported image size

See also this thread - https://surveyjs.answerdesk.io/ticket/details/t5311/analytics-angular-download-plot-as-a-png-with-user-given-filename

survey-analytics Enhancement Introduce an event to configure chart settings (traces, layout and config)
custom-widgets Bug On clearing value in select2 the null value is adding into choices
custom-widgets Bug datepicker is not disabled if question is read-only

If question is read-only initially then datepicker is enabled. It becomes disabled/enabled on chaning the question isReadOnly property value, but doesn't use the initial value.

Version: v1.8.5, released at Wednesday, September 30, 2020, Total Issue Count: 13

Product
survey-library
Type
Bug
Description
Fix "sv-matrix__text--checked" style name

We have incorrect unicode symbol "c" in this style name. It produces issues.

Product
survey-library
Type
Bug
Description
Signature Pad has black background for dataFormat JPEG

On setting dateFormat to "JPEG" the background turns to black.

The following JSON doesn't work:

{
    "type": "text",
    "name": "question1",
    "min": 0,
    "max": 100,
    "inputType": "number"
}

It will work if min and max properties put after inputType property. It should work in all cases.

Current we require to use "=" in properties defaultValue and min/max to tell SurveyJS that we are entering the expression. For example: defaultValue: "=today(-1)", it will set the value by default to yesterday. Unfortunately, it is hard to create a decent UI for this type of property type, when it can be date or number or expression. We decided to introduce new properties that will come into Logic category. defaultValueExpression and minValueExpression/maxValueExpression where user can enter the expression in expression property editor.

Old JSON will continue to work, but on loading from JSON other properties will be used. For example defaultValue: "=today(-1)" will be converted into defaultValueExpression: "today(-1)".

Product
survey-library
Type
Enhancement
Description
Introduce lazy rendering mode for page/panel rows content

At this moment all logically visible questions on a page or panel rendered always during page rendering. If one has a lot of questions (especially complex questions like matrices) this heavily impact survey page rendering time.

Proposed solution: not to render content (questions) of rows that in the first moment are out of the scrolling area and not visible in the current viewport.

Product
survey-creator
Type
Enhancement
Description
Allow to restrict expression operators

The original request came from SurveyJS support desk. Currently, there is no way to remove some operators. From v1.8.5 it can be done by using this code:

  delete SurveyCreator.SurveyPropertyEditorFactory.operators.contains;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.notcontains;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.anyof;
  delete SurveyCreator.SurveyPropertyEditorFactory.operators.allof;

It will remove "contains", "notcontains", "anyof" and "allof".

Product
survey-creator
Type
Bug
Description
Themes in Embeded Tab is out of date

We have different theme engine and default theme is "modern" that uses "modern.css" file. Embeded Tab becomes out of date. It has to be fixed.

Product
survey-creator
Type
Enhancement
Description
Make expression property editor compact

Move help text into invisible by default area. Make the editor height smaller.

At this moment Undo/Redo buttons in JSON editor are always available. This looks weird. And leads to unexpected behavior if pressed. See the https://surveyjs.answerdesk.io/ticket/details/t5321/undo-and-redo-issues-in-json-editor-tab thread for more details.

Product
survey-analytics
Type
Enhancement
Description
Implement an event to configure the export chart to image parameters

This should allow to change image format, file name and exported image size

See also this thread - https://surveyjs.answerdesk.io/ticket/details/t5311/analytics-angular-download-plot-as-a-png-with-user-given-filename

Product
survey-analytics
Type
Enhancement
Description
Introduce an event to configure chart settings (traces, layout and config)
Product
custom-widgets
Type
Bug
Description
On clearing value in select2 the null value is adding into choices
Product
custom-widgets
Type
Bug
Description
datepicker is not disabled if question is read-only

If question is read-only initially then datepicker is enabled. It becomes disabled/enabled on chaning the question isReadOnly property value, but doesn't use the initial value.

Version: v1.8.4, released at Tuesday, September 22, 2020, Total Issue Count: 11

Product Type Description
survey-library Enhancement Matrix dynamic/dropdown should take into account survey.storeOthersAsComment property

Currently, columns do not save others and comments with comment postfix: as "columnName-Comment" : columnCommentValue. Matrix cells store comments/others in column value directly. Instead of: {columnName: "other", "columnName-Comment": "valueEnteredIntoOtherInput"} we always have: {columnName: "valueEnteredIntoOtherInput"}, even if survey.storeOthersAsComment equals to true (default value). We have to take into account survey.storeOthersAsComment for matrices. We have to support settings old data format into matrices, since otherwise we could break previous created surveys with old data format.

survey-library Enhancement Highlight unanswered rows in matrix question

Is there a way to highlight unanswered questions in type matrix?

isAllRowRequired just gives an error message but no highlight

survey-library Enhancement Show error text on saving results in surveyjs.io service

Show the response from our service on error on saving the survey results. You should set surveyShowDataSaving and surveyPostId, something like this:

survey.surveyShowDataSaving = true;
survey.surveyPostId = "1a81e24f-3a09-4fcc-a915-e76beddf8XXX",

In this case SurveyJS will use our web API to post the survey result into our database and show the progress.

survey-library Bug survey.textUpdateMode = "onTyping" should work for entering number in text question

survey.textUpdateMode = "onTyping" should work for text questions with inputType equals to "text" and "number".

survey-library Enhancement Refactor matrix question - code duplication and remove pure knockout objects

Remove knockout observable classes and move css code to model classes.

survey-library Bug choicesByUrl doesn't work with {NOCACHE}/{CACHE}

The following JSON simply doesn't work:

              {
                type: "checkbox",
                name: "question1",
                choicesByUrl: {
                  url: "https://restcountries.eu/rest/v2/all{NOCACHE}",
                  valueName: "name",
                },
              },
survey-library Bug Modifying matrix value onValueChanging event doesn't change UI

Here is the original issue. The requrement is to select just one row in the matrix. If an user select a cell in another row, then clear the previous row.

This code should does the trick - unselect/remove the previously selected row value.

survey.onValueChanging.add(function(sender, options){
  if(options.name !== "ourMatrixQuestionName") return;
  var keys = [];
  for(var key in options.value) {
      keys.push(key);
  }
  if(keys.length == 2 && !!options.oldValue) {
      for(var key in options.oldValue) {
          delete options.value[key];
          break;
      }
  });

Unfortunately, the row.value in the UI model is not changed and as result UI doesn't react on this value modification.

survey-library Bug Age function in expression is evaluating to true if the date provided is of future

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

If date is provided for the future, the age function in expression is still returning true

What is the expected behavior?

Age should only be calculated till current date

How would you reproduce the current behavior (if this is a bug)?

{
            "name": "page3",
            "elements": [
                {
                    "type": "text",
                    "inputType": "date",
                    "inputMask": "datetime",
                    "inputFormat": "dd/mm/yyyy",
                    "name": "QBday",
                    "startWithNewLine": false,
                    "title": "What is your birthday?",
                    //"dateFormat": "dd/mm/yy",
                    "isRequired": true,
                    "validators": [
                        {
                         "type": "expression",
                         "text": "You should be atleast 10 years or older",
                         "expression": "age({QBday}) >= 10"
                        }
                       ],
                       "max": "31/12/2999"
                }
            ]
        }

and then enter date for the future for example 20/10/2035, the expression will evaluate as true

Specify your

  • browser: Chrome
  • browser version:Version 85.0.4183.102
  • surveyjs platform (angular or react or jquery or knockout or vue): React
  • surveyjs version:1.8.3

Check the below screenshot depicting the exact issue in the source code in function age. Check the WATCH panel for the evaluated return statement. A simple if check for negative value will do a fix

image

survey-creator Bug Missing role="tab" attribute in designer tabs markup
survey-creator Enhancement Add creator.showModalElementEditor() function

creator.showElementEditor() function can focus the property grid, based on creator options. For example when property grid is used for editing properties, default behavior in the current version. There is a need to show modal window for editing properties without changing the behavior. creator.showModalElementEditor() function does it.

  /**
   * Show the creator dialog. The element can be a question, panel, page or survey.
   * @param element The survey element
   * @param onClose Callback function on closing dialog window. It has isCanceled boolean paratemer. It is true if a user cancel changes.
   * @see onElementEditorClosed
   */
  public showModalElementEditor(
    element: Survey.Base,
    onClose: (isCanceled: boolean) => any = null
  );
custom-widgets Bug Drag n drop console error when tagbox dragged from toolbox in SurveyJS Creator

While drag it over a panel and drop it through some console error(screen shot attached), but when I click add tagbox in the question designer section, than drag drop on a panel just works as expected.

See the https://surveyjs.answerdesk.io/ticket/details/t5218/tagbox-inside-panel-drag-n-drop-console-error thread for more details

Version: v1.8.4, released at Tuesday, September 22, 2020, Total Issue Count: 11

Currently, columns do not save others and comments with comment postfix: as "columnName-Comment" : columnCommentValue. Matrix cells store comments/others in column value directly. Instead of: {columnName: "other", "columnName-Comment": "valueEnteredIntoOtherInput"} we always have: {columnName: "valueEnteredIntoOtherInput"}, even if survey.storeOthersAsComment equals to true (default value). We have to take into account survey.storeOthersAsComment for matrices. We have to support settings old data format into matrices, since otherwise we could break previous created surveys with old data format.

Product
survey-library
Type
Enhancement
Description
Highlight unanswered rows in matrix question

Is there a way to highlight unanswered questions in type matrix?

isAllRowRequired just gives an error message but no highlight

Product
survey-library
Type
Enhancement
Description
Show error text on saving results in surveyjs.io service

Show the response from our service on error on saving the survey results. You should set surveyShowDataSaving and surveyPostId, something like this:

survey.surveyShowDataSaving = true;
survey.surveyPostId = "1a81e24f-3a09-4fcc-a915-e76beddf8XXX",

In this case SurveyJS will use our web API to post the survey result into our database and show the progress.

survey.textUpdateMode = "onTyping" should work for text questions with inputType equals to "text" and "number".

Product
survey-library
Type
Enhancement
Description
Refactor matrix question - code duplication and remove pure knockout objects

Remove knockout observable classes and move css code to model classes.

Product
survey-library
Type
Bug
Description
choicesByUrl doesn't work with {NOCACHE}/{CACHE}

The following JSON simply doesn't work:

              {
                type: "checkbox",
                name: "question1",
                choicesByUrl: {
                  url: "https://restcountries.eu/rest/v2/all{NOCACHE}",
                  valueName: "name",
                },
              },
Product
survey-library
Type
Bug
Description
Modifying matrix value onValueChanging event doesn't change UI

Here is the original issue. The requrement is to select just one row in the matrix. If an user select a cell in another row, then clear the previous row.

This code should does the trick - unselect/remove the previously selected row value.

survey.onValueChanging.add(function(sender, options){
  if(options.name !== "ourMatrixQuestionName") return;
  var keys = [];
  for(var key in options.value) {
      keys.push(key);
  }
  if(keys.length == 2 && !!options.oldValue) {
      for(var key in options.oldValue) {
          delete options.value[key];
          break;
      }
  });

Unfortunately, the row.value in the UI model is not changed and as result UI doesn't react on this value modification.

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

If date is provided for the future, the age function in expression is still returning true

What is the expected behavior?

Age should only be calculated till current date

How would you reproduce the current behavior (if this is a bug)?

{
            "name": "page3",
            "elements": [
                {
                    "type": "text",
                    "inputType": "date",
                    "inputMask": "datetime",
                    "inputFormat": "dd/mm/yyyy",
                    "name": "QBday",
                    "startWithNewLine": false,
                    "title": "What is your birthday?",
                    //"dateFormat": "dd/mm/yy",
                    "isRequired": true,
                    "validators": [
                        {
                         "type": "expression",
                         "text": "You should be atleast 10 years or older",
                         "expression": "age({QBday}) >= 10"
                        }
                       ],
                       "max": "31/12/2999"
                }
            ]
        }

and then enter date for the future for example 20/10/2035, the expression will evaluate as true

Specify your

  • browser: Chrome
  • browser version:Version 85.0.4183.102
  • surveyjs platform (angular or react or jquery or knockout or vue): React
  • surveyjs version:1.8.3

Check the below screenshot depicting the exact issue in the source code in function age. Check the WATCH panel for the evaluated return statement. A simple if check for negative value will do a fix

image

Product
survey-creator
Type
Bug
Description
Missing role="tab" attribute in designer tabs markup
Product
survey-creator
Type
Enhancement
Description
Add creator.showModalElementEditor() function

creator.showElementEditor() function can focus the property grid, based on creator options. For example when property grid is used for editing properties, default behavior in the current version. There is a need to show modal window for editing properties without changing the behavior. creator.showModalElementEditor() function does it.

  /**
   * Show the creator dialog. The element can be a question, panel, page or survey.
   * @param element The survey element
   * @param onClose Callback function on closing dialog window. It has isCanceled boolean paratemer. It is true if a user cancel changes.
   * @see onElementEditorClosed
   */
  public showModalElementEditor(
    element: Survey.Base,
    onClose: (isCanceled: boolean) => any = null
  );

While drag it over a panel and drop it through some console error(screen shot attached), but when I click add tagbox in the question designer section, than drag drop on a panel just works as expected.

See the https://surveyjs.answerdesk.io/ticket/details/t5218/tagbox-inside-panel-drag-n-drop-console-error thread for more details

Version: v1.8.3, released at Wednesday, September 16, 2020, Total Issue Count: 15

Product Type Description
survey-library Bug [feature request] radiogroup: radio button with bigger targeted area.

Are you requesting a feature, reporting a bug or asking a question?

feature

What is the current behavior?

clickable only on radio button

What is the expected behavior?

target area should be 'the whole line' of the radio button. even better, highlight the clickable area when hover.

before I use surveyjs, I made this work. probably I can revive it by customise the css. in my opinion, this should be the default behavior?

survey-library Enhancement support strings "{number}.{number}.{number}" for survey.questionStartIndex property

We do not support questionStartIndex with several numbers like "1.2.10". The second question should have number "1.2.11", or "1.2.10." - the second number is "1.2.11." or "(1.2.10)" - the second number is "(1.2.11)".

survey-library Bug Edit buttons in preview mode do not redirect to the correct page/question

#1813 # Are you requesting a feature, reporting a bug or asking a question? Probably a bug

What is the current behavior?

From the preview page (showPreviewBeforeComplete), if you want to edit a question in a survey that have some pages not visible because of some conditions (visibleIf) then your are not redirected to the correct page/question.

What is the expected behavior?

Being redirected to the right page when clicking 'Edit' from the preview page

How would you reproduce the current behavior (if this is a bug)?

  1. Using the json below in Survey Creator
  2. Answer 'No' on page one. This will make the page 'page_not_visible' not visible.
  3. Then continue until the preview.
  4. Click preview. So far all is good.
  5. Click the edit button of the question 'Question visible' to edit your answer.
  6. Problem -> your are not redirected to the right page because page name 'page_not_visible' is not visible.

Provide the test code and the tested page URL (if applicable)

Test code

{
 "pages": [
  {
   "name": "page_one",
   "elements": [
    {
     "type": "boolean",
     "name": "mybool",
     "title": "Answer this question",
     "isRequired": true
    }
   ],
   "title": "First page"
  },
  {
   "name": "page_not_visible",
   "elements": [
    {
     "type": "text",
     "name": "not_visible",
     "title": "Question NOT visible",
     "isRequired": true
    }
   ],
   "visibleIf": "{mybool}  = true",
   "title": "This page should not be visible"
  },
  {
   "name": "page_visible_always",
   "elements": [
    {
     "type": "text",
     "name": "q_visible",
     "title": "Question visible",
     "isRequired": true
    }
   ],
   "title": "This page should always be visible"
  },
  {
   "name": "page_template",
   "elements": [
    {
     "type": "html",
     "name": "start_info",
     "html": "<p>the end</p>"
    }
   ]
  }
 ],
 "showProgressBar": "bottom",
 "showPreviewBeforeComplete": "showAllQuestions"
}

Specify your

  • browser: any
  • browser version: any
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue
  • surveyjs version: 1.7.28
survey-library Bug onLoadChoicesFromServer event is fired ad-infinitum

Are you requesting a feature, reporting a bug or asking a question?

Bug Report

What is the current behavior?

onLoadChoicesFromServer event is fired ad-infinitum when SurveyModel.data is modified in an event handler, the choicesByUrl url is constructed from the value of another question, and a third question unrelated to those two are modified.

What is the expected behavior?

onLoadChoicesFromServer should only be fired when the choices are loaded from the server and not when unrelated questions are modified.

How would you reproduce the current behavior (if this is a bug)?

Minimal repro case:

https://stackblitz.com/edit/surveyjs-bug-5zdops?file=app/surveyjs.component.ts

There are 4 requirements to reproduce:

  1. Add an event handler to onLoadChoicesFromServer
  2. The handler must change the SurveyModel.data
  3. The dropdown question must use choicesByUrl with a url that is templated from another question. In the repro case, it use the value of another dropdown: https://pokeapi.co/api/v2/pokemon?limit={q_limit} where question q_limit define a few numeric values.
  4. A question other than these two must be modified and lose focus to trigger a modification. If you modified 'Limit' it won't happen, just reload the tab and only modify the text field in the repro case.

In the repro case, open the project in a new tab (I highly recommend that because otherwise the editor will become unresponsive) and open the console of your browser. Then, write a value in the question "Text field" and click outside the window.

You will see hundred of console logs from the onLoadChoicesFromServer call. The browser will eventually detect it and terminate the loop but in the case of our more complex application this never stop and create a few important issues.

Specify your

  • browser: Chrome/Firefox
  • browser version: Latest
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version: 1.8.1
survey-library Bug Signature pad: content after delete comes back

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

When dataFormat is set to a value and pressing the delete button, the content is visible after painting again.

What is the expected behavior?

The deleted content should not return.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/v7cCWT9LkRC0C5zE

Specify your

  • browser: Chrome
  • browser version: 85
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.8.2
survey-library Bug The isAnswered property of matrixdynamic is false after setting question's value for T5206

But will be true if call updateIsAnswered for matrixdynamic question

Live sample in plunker

image

survey-library Bug Stackoverflow on JSON with non english locale and firstPageIsStarted equals to true

The following JSON generates stackoverflow:

{
 locale: "de",
 pages: [
  {
   elements: [
    {
     type: "text",
     name: "question10"
    },
    {
     type: "text",
     name: "question11",
     startWithNewLine: false,
    }
   ],
  }],
 firstPageIsStarted: true
}
survey-creator Enhancement Bootstrap material 4 design issues

based on https://surveyjs.answerdesk.io/ticket/details/T5109

work for bootstrap-material 4 and creator integration

survey-creator Bug Condition Property Editor doesn't work when question.valueName equals to {prefix} + question.valueName

For the following JSON, condition property editor will generate incorrect expression for "q2".

{
      elements: [
        { name: "q1", type: "text", valueName: "profile:q1" },
        {
          name: "q2",
          type: "text",
        },
      ],
    }

"visibleIf" property will use {profile:profile:q1} instead of {profile:q1}.

survey-creator Bug Missing role="button" in the title editor adorner

See the T5188 - [Accessibility][Incorrect Control type]Control type of Edit control beside "Input Survey title here" is wrong thread for more details

survey-creator Bug Buttons in the logic rules list don't have role="button" attribute
survey-creator Bug Changing of options.list instance from onConditionQuestionsGetList is ignored for T5191
survey-creator Bug On adding new item in radio group if there is a large number in choices it hangs the browser

If there is a question with the large number choices, then browser hangs on trying to add a new item

    {
     "type": "radiogroup",
     "name": "q2",
     "choices": [
      "12345671234567890",
      "12345671234567891",
      "12345671234567892"
     ]
    }
   ]

The reason, JavaScript failed to increase 12345671234567892 number.

survey-creator Enhancement Change the list of simulator devices

In the list of devices for testing the survey, is it possible to change the list? Add new ones, remove them etc? We'd like to simplify the list and have portrait the default orientation.

The list is a variable here https://github.com/surveyjs/survey-creator/blob/6489166c784bf930e8ee018eaa5df63f0cd815a4/src/components/simulator.ts#L144 and I'm wondering if it can be overridden somewhere.

Thanks!

survey-analytics Enhancement labelTruncateLength property

Implement the property to set the length of the label where the truncation starts. Set to -1 to disable truncate. Default is 27.

var options = {
  labelTruncateLength: 50,
};

var visPanel = new SurveyAnalytics.VisualizationPanel(
  ...
  options
);

Version: v1.8.3, released at Wednesday, September 16, 2020, Total Issue Count: 15

Product
survey-library
Type
Bug
Description
[feature request] radiogroup: radio button with bigger targeted area.

Are you requesting a feature, reporting a bug or asking a question?

feature

What is the current behavior?

clickable only on radio button

What is the expected behavior?

target area should be 'the whole line' of the radio button. even better, highlight the clickable area when hover.

before I use surveyjs, I made this work. probably I can revive it by customise the css. in my opinion, this should be the default behavior?

We do not support questionStartIndex with several numbers like "1.2.10". The second question should have number "1.2.11", or "1.2.10." - the second number is "1.2.11." or "(1.2.10)" - the second number is "(1.2.11)".

#1813 # Are you requesting a feature, reporting a bug or asking a question? Probably a bug

What is the current behavior?

From the preview page (showPreviewBeforeComplete), if you want to edit a question in a survey that have some pages not visible because of some conditions (visibleIf) then your are not redirected to the correct page/question.

What is the expected behavior?

Being redirected to the right page when clicking 'Edit' from the preview page

How would you reproduce the current behavior (if this is a bug)?

  1. Using the json below in Survey Creator
  2. Answer 'No' on page one. This will make the page 'page_not_visible' not visible.
  3. Then continue until the preview.
  4. Click preview. So far all is good.
  5. Click the edit button of the question 'Question visible' to edit your answer.
  6. Problem -> your are not redirected to the right page because page name 'page_not_visible' is not visible.

Provide the test code and the tested page URL (if applicable)

Test code

{
 "pages": [
  {
   "name": "page_one",
   "elements": [
    {
     "type": "boolean",
     "name": "mybool",
     "title": "Answer this question",
     "isRequired": true
    }
   ],
   "title": "First page"
  },
  {
   "name": "page_not_visible",
   "elements": [
    {
     "type": "text",
     "name": "not_visible",
     "title": "Question NOT visible",
     "isRequired": true
    }
   ],
   "visibleIf": "{mybool}  = true",
   "title": "This page should not be visible"
  },
  {
   "name": "page_visible_always",
   "elements": [
    {
     "type": "text",
     "name": "q_visible",
     "title": "Question visible",
     "isRequired": true
    }
   ],
   "title": "This page should always be visible"
  },
  {
   "name": "page_template",
   "elements": [
    {
     "type": "html",
     "name": "start_info",
     "html": "<p>the end</p>"
    }
   ]
  }
 ],
 "showProgressBar": "bottom",
 "showPreviewBeforeComplete": "showAllQuestions"
}

Specify your

  • browser: any
  • browser version: any
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue
  • surveyjs version: 1.7.28
Product
survey-library
Type
Bug
Description
onLoadChoicesFromServer event is fired ad-infinitum

Are you requesting a feature, reporting a bug or asking a question?

Bug Report

What is the current behavior?

onLoadChoicesFromServer event is fired ad-infinitum when SurveyModel.data is modified in an event handler, the choicesByUrl url is constructed from the value of another question, and a third question unrelated to those two are modified.

What is the expected behavior?

onLoadChoicesFromServer should only be fired when the choices are loaded from the server and not when unrelated questions are modified.

How would you reproduce the current behavior (if this is a bug)?

Minimal repro case:

https://stackblitz.com/edit/surveyjs-bug-5zdops?file=app/surveyjs.component.ts

There are 4 requirements to reproduce:

  1. Add an event handler to onLoadChoicesFromServer
  2. The handler must change the SurveyModel.data
  3. The dropdown question must use choicesByUrl with a url that is templated from another question. In the repro case, it use the value of another dropdown: https://pokeapi.co/api/v2/pokemon?limit={q_limit} where question q_limit define a few numeric values.
  4. A question other than these two must be modified and lose focus to trigger a modification. If you modified 'Limit' it won't happen, just reload the tab and only modify the text field in the repro case.

In the repro case, open the project in a new tab (I highly recommend that because otherwise the editor will become unresponsive) and open the console of your browser. Then, write a value in the question "Text field" and click outside the window.

You will see hundred of console logs from the onLoadChoicesFromServer call. The browser will eventually detect it and terminate the loop but in the case of our more complex application this never stop and create a few important issues.

Specify your

  • browser: Chrome/Firefox
  • browser version: Latest
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version: 1.8.1
Product
survey-library
Type
Bug
Description
Signature pad: content after delete comes back

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

When dataFormat is set to a value and pressing the delete button, the content is visible after painting again.

What is the expected behavior?

The deleted content should not return.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/v7cCWT9LkRC0C5zE

Specify your

  • browser: Chrome
  • browser version: 85
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.8.2

But will be true if call updateIsAnswered for matrixdynamic question

Live sample in plunker

image

The following JSON generates stackoverflow:

{
 locale: "de",
 pages: [
  {
   elements: [
    {
     type: "text",
     name: "question10"
    },
    {
     type: "text",
     name: "question11",
     startWithNewLine: false,
    }
   ],
  }],
 firstPageIsStarted: true
}
Product
survey-creator
Type
Enhancement
Description
Bootstrap material 4 design issues

based on https://surveyjs.answerdesk.io/ticket/details/T5109

work for bootstrap-material 4 and creator integration

For the following JSON, condition property editor will generate incorrect expression for "q2".

{
      elements: [
        { name: "q1", type: "text", valueName: "profile:q1" },
        {
          name: "q2",
          type: "text",
        },
      ],
    }

"visibleIf" property will use {profile:profile:q1} instead of {profile:q1}.

Product
survey-creator
Type
Bug
Description
Missing role="button" in the title editor adorner

See the T5188 - [Accessibility][Incorrect Control type]Control type of Edit control beside "Input Survey title here" is wrong thread for more details

Product
survey-creator
Type
Bug
Description
Buttons in the logic rules list don't have role="button" attribute

If there is a question with the large number choices, then browser hangs on trying to add a new item

    {
     "type": "radiogroup",
     "name": "q2",
     "choices": [
      "12345671234567890",
      "12345671234567891",
      "12345671234567892"
     ]
    }
   ]

The reason, JavaScript failed to increase 12345671234567892 number.

Product
survey-creator
Type
Enhancement
Description
Change the list of simulator devices

In the list of devices for testing the survey, is it possible to change the list? Add new ones, remove them etc? We'd like to simplify the list and have portrait the default orientation.

The list is a variable here https://github.com/surveyjs/survey-creator/blob/6489166c784bf930e8ee018eaa5df63f0cd815a4/src/components/simulator.ts#L144 and I'm wondering if it can be overridden somewhere.

Thanks!

Product
survey-analytics
Type
Enhancement
Description
labelTruncateLength property

Implement the property to set the length of the label where the truncation starts. Set to -1 to disable truncate. Default is 27.

var options = {
  labelTruncateLength: 50,
};

var visPanel = new SurveyAnalytics.VisualizationPanel(
  ...
  options
);

Version: v1.8.2, released at Thursday, September 10, 2020, Total Issue Count: 10

Product Type Description
survey-library Bug Pressing markdown link focuses the answer input

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

Pressing on a link inside a question description focuses the answer input.

What is the expected behavior?

Pressing on a link should open the link.

How would you reproduce the current behavior (if this is a bug)?

  1. Use markdown example
  2. Add question description with link
  3. Press link

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/SzheBTFLcoIqDweV

Specify your

  • browser: Google Chrome
  • browser version: 84
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.7.24
survey-library Enhancement How to center the radio buttons on the matrix

@andrewtelnov

How do I center the radio buttons. Screenshot below:

image

Currently they are left aligned

Are you requesting a feature, reporting a bug or asking a question?

What is the current behavior?

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version:
survey-library Enhancement progressBarType should only count visible questions

Are you requesting a feature, reporting a bug or asking a question?

Requesting a feature

What is the current behavior?

  • If progressBarType=pages the progress bar is calculated using only visible pages of the survey.
  • If progressBarType=questions the progress bar is calculated using all questions. If the survey contains invisible questions or the user skipped non-required questions, the progress bar shows 7/9 when the user has actually finished the survey.

What is the expected behavior?

A new option which only uses visible and required questions to calculate the progress bar should be implemented.

  1. Count all visible and required questions
  2. Count all visible and non-required questions that were answered
  3. Add up these numbers. This is the total amount of questions
survey-library Enhancement Optionally disable conversion variable in expression from string to numeric or boolean

In the most case it makes sense to convert string to numeric, if this conversion is doable. In this case expression will work with them as numeric when possible. For example, the expression: " + ", where val1: "1" and val2: "2" will return 3. However, in some cases developers need to have these variables as strings and want to have the result "12". To support both scenarios, we are adding the following '#' variable prefix to disable the conversion. " + " will return 3 and " + " will return "12".

survey-library Enhancement Add "requriedQuestions" option into survey.progressBarType

Allow to show progress for requried questions only. survey.progressBarType = "requiredQuestions";

survey-library Enhancement Optionally execute skip trigger on page next

Add a new option

// Set this property to false to execute the skip trigger on next page instead of on value change.
Survey.settings.executeSkipTriggerOnValueChanged: true,

To change the behavior run this code: Survey.settings.executeSkipTriggerOnValueChanged = false;

survey-creator Bug Can't select correctQuestions progress bar type
  1. Go to https://surveyjs.io/create-survey
  2. Open Navigation section in Survey properties
  3. Select correctQuestions in Progress Bar Type dropdown
  4. ???
  5. Dropdown value is empty

P.S. If select correctQuestions again dropdown value will be correct P.P.S. but seems correctQuestions bar type not works at all

image

survey-creator Bug Toolbox categories not closable
survey-creator Bug tablist bad outline by mouse click

91e12e9d46

custom-widgets Bug IE11 "multiple definitions strict mode" bug

I got IE11 error "multiple definitions strict mode".

Inspection show that it caused by next code:

e.JsonObject.metaData.addProperty("sortablelist",{name:"emptyText",category:"general",default:"Move items here.",category:"general"})

I think problem is in duplicated category property. I found at least 3 duplications.

Can You fix it?

Version: v1.8.2, released at Thursday, September 10, 2020, Total Issue Count: 10

Product
survey-library
Type
Bug
Description
Pressing markdown link focuses the answer input

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

Pressing on a link inside a question description focuses the answer input.

What is the expected behavior?

Pressing on a link should open the link.

How would you reproduce the current behavior (if this is a bug)?

  1. Use markdown example
  2. Add question description with link
  3. Press link

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/SzheBTFLcoIqDweV

Specify your

  • browser: Google Chrome
  • browser version: 84
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.7.24
Product
survey-library
Type
Enhancement
Description
How to center the radio buttons on the matrix

@andrewtelnov

How do I center the radio buttons. Screenshot below:

image

Currently they are left aligned

Are you requesting a feature, reporting a bug or asking a question?

What is the current behavior?

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue): Angular
  • surveyjs version:
Product
survey-library
Type
Enhancement
Description
progressBarType should only count visible questions

Are you requesting a feature, reporting a bug or asking a question?

Requesting a feature

What is the current behavior?

  • If progressBarType=pages the progress bar is calculated using only visible pages of the survey.
  • If progressBarType=questions the progress bar is calculated using all questions. If the survey contains invisible questions or the user skipped non-required questions, the progress bar shows 7/9 when the user has actually finished the survey.

What is the expected behavior?

A new option which only uses visible and required questions to calculate the progress bar should be implemented.

  1. Count all visible and required questions
  2. Count all visible and non-required questions that were answered
  3. Add up these numbers. This is the total amount of questions

In the most case it makes sense to convert string to numeric, if this conversion is doable. In this case expression will work with them as numeric when possible. For example, the expression: " + ", where val1: "1" and val2: "2" will return 3. However, in some cases developers need to have these variables as strings and want to have the result "12". To support both scenarios, we are adding the following '#' variable prefix to disable the conversion. " + " will return 3 and " + " will return "12".

Product
survey-library
Type
Enhancement
Description
Add "requriedQuestions" option into survey.progressBarType

Allow to show progress for requried questions only. survey.progressBarType = "requiredQuestions";

Product
survey-library
Type
Enhancement
Description
Optionally execute skip trigger on page next

Add a new option

// Set this property to false to execute the skip trigger on next page instead of on value change.
Survey.settings.executeSkipTriggerOnValueChanged: true,

To change the behavior run this code: Survey.settings.executeSkipTriggerOnValueChanged = false;

Product
survey-creator
Type
Bug
Description
Can't select correctQuestions progress bar type
  1. Go to https://surveyjs.io/create-survey
  2. Open Navigation section in Survey properties
  3. Select correctQuestions in Progress Bar Type dropdown
  4. ???
  5. Dropdown value is empty

P.S. If select correctQuestions again dropdown value will be correct P.P.S. but seems correctQuestions bar type not works at all

image

Product
survey-creator
Type
Bug
Description
Toolbox categories not closable
Product
survey-creator
Type
Bug
Description
tablist bad outline by mouse click

91e12e9d46

Product
custom-widgets
Type
Bug
Description
IE11 "multiple definitions strict mode" bug

I got IE11 error "multiple definitions strict mode".

Inspection show that it caused by next code:

e.JsonObject.metaData.addProperty("sortablelist",{name:"emptyText",category:"general",default:"Move items here.",category:"general"})

I think problem is in duplicated category property. I found at least 3 duplications.

Can You fix it?

Version: v1.8.1, released at Wednesday, September 9, 2020, Total Issue Count: 16

Product Type Description
survey-library Bug Do not check for errors for non value and read-only questions

We should not check for errors for questions like "html" and "expression".

survey-library Enhancement File question type - reset isUploading to false in case of uploading error

At the current moment the isUploading flag isn't changed to false if uploading callback is called with the error result. This might block the UI or break the further work with this question. We need to reset isUploading to false in case of uploading error.

See the https://surveyjs.answerdesk.io/ticket/details/t5105/upload-keeps-loading-when-upload-actually-failed thread for more details.

survey-library Enhancement Allow to set visibleIndex to questions with hidden title and title numbers (optionally)

By default we do not set visibleIndex for questions with hidden title or title numbers: question.titleLocation = "hidden"; or question.hideNumber = true;. For example, if question2 has hideNumber equals to true then survey renders question titles as: "1. Question 1", "Question 2", "2. Question 3". In some scenarios, developers want to have visibleIndex for question with hidden title and/or hidden numbers and they want survey to render the question titles as: "1. Question 1", "Question 2", "3. Question 3". question2.visibleIndex, in this case, is 1 instead of -1, but question.no is empty string in both cases.

To get this behavior set to true two new settings:

Survey.settings.setQuestionVisibleIndexForHiddenTitle = true;
Survey.settings.setQuestionVisibleIndexForHiddenNumber = true;
survey-library Enhancement Allow to enable/disable caching for choices from webservice by url

Here is the original question: Disable caching getting choices from web services for some specific questions. We introduce and directives that you can add into url. Use this directives to enable/disable caching for this particular url. For example: url: "https://restcountries.eu/rest/v2/all{NOCACHE}".

survey-library Enhancement Add today() function that your can use in expressions

today([value:number]) function returns the current date. It has an optional parameter, a number that will be added as days to the current date. For example: "today()" - will return the current date 0 hours, 0 minutes "today(1)" will return tommorow "today(-1) will return yesterday "today(2) will return after tomorrow and so on.

survey-library Enhancement Allow to use expressions in min/max text question properties

The following JSON becomes valid: { type: "text", name: "arrivalDate", min:"=today(1)"}. End-user could not enter the date less than tomorrow.

survey-library Enhancement Allow to use expression in defaultValue

The following JSON becomes valid: { type: "text", name: "arrivalDate", defaultValue:"=today(1)"}. The default value will be tomorrow.

survey-library Enhancement Allow to change data format of signature pad image

See the https://surveyjs.answerdesk.io/ticket/details/t5143/signature-widget-blob-format thread for more details.

Added the dataFormat property:

  /**
   * Use it to set the specific dataFormat for the signature pad image data.
   * formats: undefined (default) - png, "image/jpeg" - jpeg, "image/svg+xml" - svg
   */
  public get dataFormat(): string {
    return this.getPropertyValue("dataFormat", undefined);
  }
  public set dataFormat(val: string) {
    this.setPropertyValue("dataFormat", val);
  }
survey-library Enhancement Add onProgressText event

Allow developers to set any text into progress bar.

  /**
   * Use this event to change the progress text in code.
   * <br/> `sender` - the survey object that fires the event.
   * <br/> `options.text` - a progress text, that SurveyJS will render in progress bar.
   * <br/> `options.questionCount` - a number of questions that have input(s). We do not count html or expression questions
   * <br/> `options.answeredQuestionCount` - a number of questions that have input(s) and an user has answered.
   *  @see progressBarType
   */
  public onProgressText: Event<
    (sender: SurveyModel, options: any) => any,
    any
  > = new Event<(sender: SurveyModel, options: any) => any, any>();

Example of showing % of answered questions:

  survey.onProgressText.add((sender: SurveyModel, options: any) => {
    questionCount = options.questionCount;
    answeredQuestionCount = options.answeredQuestionCount;
    options.text =
      "Answered: " +
      (100 * options.answeredQuestionCount) / options.questionCount +
      "%";
  });
survey-creator Bug when page moved , the setModified of type "PAGE_MOVED" has not excute

when page moved , the setModified of type "PAGE_MOVED" has not excute

survey-creator Enhancement Introduce file property editor

It will allow to pick files directly from the property grid and eliminate creator unresponsibility if base64 encoded images are stored in survey JSON.

See the https://surveyjs.answerdesk.io/ticket/details/t5019/upload-file-change-no-file-chosen-text https://surveyjs.answerdesk.io/ticket/details/t5113/survey-logo-makes-app-freeze threads for more details

survey-creator Enhancement Add event to create your own editor for Translation Item

Creator uses text area for editing translation item (string in a particular locale). The following event will allow to use your own editor:

/**
   * The method is called on after render translation item. You can modify the html element using this event
   * <br/> options.item - translation item
   * <br/> options.htmlElement - text area for editing
   * <br/> options.locale - the name of the editing locale
   * <br/> options.onDestroyCallback - a function callback that is called on remove htmlElement from DOM.
   * @see translation
   * @see showTranslationTab
   */
  public onTranslateItemAfterRender: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();

Example:

      creator.onTranslateItemAfterRender.add(function (sender, options) {
       //get the text area
        var textArea = options.htmlElement;
       //modify the current locale
        var locale = options.locale;
        //options.item.setLocText(options.locale, newText); //modify the item for the current locale, you can use on event.
        options.onDestroyCallback = function () {
             //Un-initialize events/DOM elements on removing textArea from the DOM
        };
      });

survey-creator Bug Select2 doesn't work in object selector
survey-analytics Bug Make Vizualization Panel's showHeader "true" by default

It should be true by default because if it false we can hide vizualizer but can't show it.

survey-analytics Bug Vizualization panel's onStateChanged event calls before drag release
survey-analytics Bug Wordcloud canvas ctx.getImageData running out of memory

Version: v1.8.1, released at Wednesday, September 9, 2020, Total Issue Count: 16

Product
survey-library
Type
Bug
Description
Do not check for errors for non value and read-only questions

We should not check for errors for questions like "html" and "expression".

Product
survey-library
Type
Enhancement
Description
File question type - reset isUploading to false in case of uploading error

At the current moment the isUploading flag isn't changed to false if uploading callback is called with the error result. This might block the UI or break the further work with this question. We need to reset isUploading to false in case of uploading error.

See the https://surveyjs.answerdesk.io/ticket/details/t5105/upload-keeps-loading-when-upload-actually-failed thread for more details.

By default we do not set visibleIndex for questions with hidden title or title numbers: question.titleLocation = "hidden"; or question.hideNumber = true;. For example, if question2 has hideNumber equals to true then survey renders question titles as: "1. Question 1", "Question 2", "2. Question 3". In some scenarios, developers want to have visibleIndex for question with hidden title and/or hidden numbers and they want survey to render the question titles as: "1. Question 1", "Question 2", "3. Question 3". question2.visibleIndex, in this case, is 1 instead of -1, but question.no is empty string in both cases.

To get this behavior set to true two new settings:

Survey.settings.setQuestionVisibleIndexForHiddenTitle = true;
Survey.settings.setQuestionVisibleIndexForHiddenNumber = true;
Product
survey-library
Type
Enhancement
Description
Allow to enable/disable caching for choices from webservice by url

Here is the original question: Disable caching getting choices from web services for some specific questions. We introduce and directives that you can add into url. Use this directives to enable/disable caching for this particular url. For example: url: "https://restcountries.eu/rest/v2/all{NOCACHE}".

Product
survey-library
Type
Enhancement
Description
Add today() function that your can use in expressions

today([value:number]) function returns the current date. It has an optional parameter, a number that will be added as days to the current date. For example: "today()" - will return the current date 0 hours, 0 minutes "today(1)" will return tommorow "today(-1) will return yesterday "today(2) will return after tomorrow and so on.

Product
survey-library
Type
Enhancement
Description
Allow to use expressions in min/max text question properties

The following JSON becomes valid: { type: "text", name: "arrivalDate", min:"=today(1)"}. End-user could not enter the date less than tomorrow.

Product
survey-library
Type
Enhancement
Description
Allow to use expression in defaultValue

The following JSON becomes valid: { type: "text", name: "arrivalDate", defaultValue:"=today(1)"}. The default value will be tomorrow.

Product
survey-library
Type
Enhancement
Description
Allow to change data format of signature pad image

See the https://surveyjs.answerdesk.io/ticket/details/t5143/signature-widget-blob-format thread for more details.

Added the dataFormat property:

  /**
   * Use it to set the specific dataFormat for the signature pad image data.
   * formats: undefined (default) - png, "image/jpeg" - jpeg, "image/svg+xml" - svg
   */
  public get dataFormat(): string {
    return this.getPropertyValue("dataFormat", undefined);
  }
  public set dataFormat(val: string) {
    this.setPropertyValue("dataFormat", val);
  }
Product
survey-library
Type
Enhancement
Description
Add onProgressText event

Allow developers to set any text into progress bar.

  /**
   * Use this event to change the progress text in code.
   * <br/> `sender` - the survey object that fires the event.
   * <br/> `options.text` - a progress text, that SurveyJS will render in progress bar.
   * <br/> `options.questionCount` - a number of questions that have input(s). We do not count html or expression questions
   * <br/> `options.answeredQuestionCount` - a number of questions that have input(s) and an user has answered.
   *  @see progressBarType
   */
  public onProgressText: Event<
    (sender: SurveyModel, options: any) => any,
    any
  > = new Event<(sender: SurveyModel, options: any) => any, any>();

Example of showing % of answered questions:

  survey.onProgressText.add((sender: SurveyModel, options: any) => {
    questionCount = options.questionCount;
    answeredQuestionCount = options.answeredQuestionCount;
    options.text =
      "Answered: " +
      (100 * options.answeredQuestionCount) / options.questionCount +
      "%";
  });
Product
survey-creator
Type
Bug
Description
when page moved , the setModified of type "PAGE_MOVED" has not excute

when page moved , the setModified of type "PAGE_MOVED" has not excute

Product
survey-creator
Type
Enhancement
Description
Introduce file property editor

It will allow to pick files directly from the property grid and eliminate creator unresponsibility if base64 encoded images are stored in survey JSON.

See the https://surveyjs.answerdesk.io/ticket/details/t5019/upload-file-change-no-file-chosen-text https://surveyjs.answerdesk.io/ticket/details/t5113/survey-logo-makes-app-freeze threads for more details

Product
survey-creator
Type
Enhancement
Description
Add event to create your own editor for Translation Item

Creator uses text area for editing translation item (string in a particular locale). The following event will allow to use your own editor:

/**
   * The method is called on after render translation item. You can modify the html element using this event
   * <br/> options.item - translation item
   * <br/> options.htmlElement - text area for editing
   * <br/> options.locale - the name of the editing locale
   * <br/> options.onDestroyCallback - a function callback that is called on remove htmlElement from DOM.
   * @see translation
   * @see showTranslationTab
   */
  public onTranslateItemAfterRender: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();

Example:

      creator.onTranslateItemAfterRender.add(function (sender, options) {
       //get the text area
        var textArea = options.htmlElement;
       //modify the current locale
        var locale = options.locale;
        //options.item.setLocText(options.locale, newText); //modify the item for the current locale, you can use on event.
        options.onDestroyCallback = function () {
             //Un-initialize events/DOM elements on removing textArea from the DOM
        };
      });

Product
survey-creator
Type
Bug
Description
Select2 doesn't work in object selector
Product
survey-analytics
Type
Bug
Description
Make Vizualization Panel's showHeader "true" by default

It should be true by default because if it false we can hide vizualizer but can't show it.

Product
survey-analytics
Type
Bug
Description
Vizualization panel's onStateChanged event calls before drag release
Product
survey-analytics
Type
Bug
Description
Wordcloud canvas ctx.getImageData running out of memory

Version: v1.8.0, released at Thursday, September 3, 2020, Total Issue Count: 12

Product Type Description
survey-library Bug Questions doesn't render correctly if there is a locale key in the end of JSON

The folloing JSON doesn't work:

{
      pages: [
        {
          name: "p01",
          elements: [
            {
              type: "text",
              name: "question2",
            },
          ],
        },
      ],
      locale: "de",
    }

The original issue created as an issue in SurveyJS help desk.

survey-library Bug Width for column in Matrixdynamic does not work when the header is hidden

We set width/min-width attributes for the

row. When it is hidden we do not set the width at all. We have to set it to the elements for the first row.

survey-library BreakingChange readOnlyCommentRenderMode doesn't work
survey-library Bug Comment values are not displayed when storeOthersAsComment=false

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

My goal is to preload data into the survey. When storeOthersAsComment is set to false saving and loading of other is working as expected. But the comment values are not loaded/displayed anymore.

What is the expected behavior?

Values of comment should be displayed when storeOthersAsComment is set to false.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/01lPusQYEIFtxpBb

Specify your

  • browser: Chrome
  • browser version: 84
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.7.26
survey-library Enhancement Allow to disable caching getting choices from web services

In the most cases chaching the choices results from web services is a good idea. However, in some cases developers require to disable this option to get the latest results all the time. The following options has been added into survey settings.

  /**
   * Cache the result for choices getting from web services. Set this property to false, to disable the caching.
   */
  useCachingForChoicesRestfull: true,

Use the following code to disable caching: Survey.settings.useCachingForChoicesRestfull = false;.

survey-library Bug Could not set "undefined" string as a value into a question

Survey converts "undefined" strings on setting question.value into undefined value. It should treat "undefined" string as a string.

survey-creator Bug SurveyCreator readonly not applied properly

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

If a new value is assigned to SurveyCreator's readonly property the change is applied only partially in the interface:

  • Fields in the properties pane of the current element remain unchanged - editable or readonly depending on the previous state.
  • Inline editing of the current page's title and description remains unchanged - enabled or disabled depending on the previous state.
  • Inline editing of the Survey's title and description remains unchanged - enabled or disabled depending on the previous state, Once disabled it cannot be enabled anymore.

To see the interface reflect the new setting (enabled or disabled) the user must select a different element (i.e. select a different Page). Then the fields become editable or readonly as expected depending on the value of the setting.

What is the expected behavior?

When readonly is set to false all editing must become enabled, also for the currently selected element. When readonly is set to true all editing must became disabled.

How would you reproduce the current behavior (if this is a bug)?

Change the value of readonly and observe that the interface doesn't reflect the change.

Provide the test code and the tested page URL (if applicable)

Test code surveyCreator.readonly = true; // editing must become disabled surveyCreator.readonly = false; // editing must become enabled

Specify your

  • browser: Chrome 84.0.4147.89
  • editor version: 1.7.18
survey-creator Enhancement Logo image chooser adorner - allow choose image in spite of hidden logo property
survey-creator Bug Image Picker doesn't update items in designer on changing value/text and image link in choices property editor

Image Picker question should react on changing made in choices property editor immediately.

survey-pdf Bug Rendering html to image doesn't work in Edge

Fixed via this commit with conversion svg to base64

survey-analytics Enhancement isPublic and isVisible props instead of visibility

Change elements and columns visibility:

enum ElementVisibility {
  Visible,
  Invisible,
  PublicInvisible,
}

export interface IVisualizerPanelElement {
  ...
  visibility: ElementVisibility;
  ...
}

to two properties:

interface IVisualizerPanelElement {
  ...
  isVisible: boolean;
  isPublic: boolean;
  ...
}

for better user experience and covering all possible cases

and get rid of isTrustedAccess

custom-widgets Enhancement Add minDate/maxDate properties into jquery date time picker

Add an easy way to setup min and max date from jquery date time picker by adding two properties.

Version: v1.8.0, released at Thursday, September 3, 2020, Total Issue Count: 12

The folloing JSON doesn't work:

{
      pages: [
        {
          name: "p01",
          elements: [
            {
              type: "text",
              name: "question2",
            },
          ],
        },
      ],
      locale: "de",
    }

The original issue created as an issue in SurveyJS help desk.

We set width/min-width attributes for the row. When it is hidden we do not set the width at all. We have to set it to the elements for the first row.

Product
survey-library
Type
BreakingChange
Description
readOnlyCommentRenderMode doesn't work
Product
survey-library
Type
Bug
Description
Comment values are not displayed when storeOthersAsComment=false

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

My goal is to preload data into the survey. When storeOthersAsComment is set to false saving and loading of other is working as expected. But the comment values are not loaded/displayed anymore.

What is the expected behavior?

Values of comment should be displayed when storeOthersAsComment is set to false.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://plnkr.co/edit/01lPusQYEIFtxpBb

Specify your

  • browser: Chrome
  • browser version: 84
  • surveyjs platform (angular or react or jquery or knockout or vue): angular
  • surveyjs version: 1.7.26
Product
survey-library
Type
Enhancement
Description
Allow to disable caching getting choices from web services

In the most cases chaching the choices results from web services is a good idea. However, in some cases developers require to disable this option to get the latest results all the time. The following options has been added into survey settings.

  /**
   * Cache the result for choices getting from web services. Set this property to false, to disable the caching.
   */
  useCachingForChoicesRestfull: true,

Use the following code to disable caching: Survey.settings.useCachingForChoicesRestfull = false;.

Product
survey-library
Type
Bug
Description
Could not set "undefined" string as a value into a question

Survey converts "undefined" strings on setting question.value into undefined value. It should treat "undefined" string as a string.

Product
survey-creator
Type
Bug
Description
SurveyCreator readonly not applied properly

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

If a new value is assigned to SurveyCreator's readonly property the change is applied only partially in the interface:

  • Fields in the properties pane of the current element remain unchanged - editable or readonly depending on the previous state.
  • Inline editing of the current page's title and description remains unchanged - enabled or disabled depending on the previous state.
  • Inline editing of the Survey's title and description remains unchanged - enabled or disabled depending on the previous state, Once disabled it cannot be enabled anymore.

To see the interface reflect the new setting (enabled or disabled) the user must select a different element (i.e. select a different Page). Then the fields become editable or readonly as expected depending on the value of the setting.

What is the expected behavior?

When readonly is set to false all editing must become enabled, also for the currently selected element. When readonly is set to true all editing must became disabled.

How would you reproduce the current behavior (if this is a bug)?

Change the value of readonly and observe that the interface doesn't reflect the change.

Provide the test code and the tested page URL (if applicable)

Test code surveyCreator.readonly = true; // editing must become disabled surveyCreator.readonly = false; // editing must become enabled

Specify your

  • browser: Chrome 84.0.4147.89
  • editor version: 1.7.18
Product
survey-creator
Type
Enhancement
Description
Logo image chooser adorner - allow choose image in spite of hidden logo property

Image Picker question should react on changing made in choices property editor immediately.

Product
survey-pdf
Type
Bug
Description
Rendering html to image doesn't work in Edge

Fixed via this commit with conversion svg to base64

Product
survey-analytics
Type
Enhancement
Description
isPublic and isVisible props instead of visibility

Change elements and columns visibility:

enum ElementVisibility {
  Visible,
  Invisible,
  PublicInvisible,
}

export interface IVisualizerPanelElement {
  ...
  visibility: ElementVisibility;
  ...
}

to two properties:

interface IVisualizerPanelElement {
  ...
  isVisible: boolean;
  isPublic: boolean;
  ...
}

for better user experience and covering all possible cases

and get rid of isTrustedAccess

Product
custom-widgets
Type
Enhancement
Description
Add minDate/maxDate properties into jquery date time picker

Add an easy way to setup min and max date from jquery date time picker by adding two properties.

Version: v1.7.28, released at Wednesday, August 26, 2020, Total Issue Count: 11

Product Type Description
survey-library Bug Css Bug in React.js PanelDynamic Add new Button

My user was complaining that clicking add new on a dynamic panel was having no effect

What I found was everything seems ok on the first add. Every add after the first, the button gives a problem unless you click the button on the very bottom edge. Anywhere else and the user gets the arrow cursor instead of the hand and they can't click.

sorry to register this small bug for that is probably a simple fix for a css person, but I couldn't figure out what was causing it. (not being a css person)

example distilled down https://plnkr.co/edit/o2vInwNbg4PuOdTp?preview

recreate by trying to click on add new twice and having button receive focus

Seeing the issue on both edge and chrome

Happens in React.js; however same issue does NOT happen in JQuery

https://plnkr.co/edit/37AkVqqAJ88zLdgI

survey-library Bug Could not use brackets in constant strings in expressions

The following expression, doesn't work: '"Hello: {" + {display_name} + "}"'. We should not parse brackets in string constants.

survey-library Bug ImagePicker not working on React after v1.7.24/survey.react.js

When using imagepicker and surveyjs react components it's not possible to pick the first image available.

Screen Shot 2020-08-21 at 11 21 06 AM Screen Shot 2020-08-21 at 11 20 34 AM

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

It's not possible to select the first image on imagepicker when using any version after 1.7.24

What is the expected behavior?

We should be able to pick any image

How would you reproduce the current behavior (if this is a bug)?

Your website is broken, go there to imagepicker, change to react and try picking up the first one. The same problem happens if run locally.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/Examples/Library?id=questiontype-imagepicker&platform=Reactjs&theme=bootstrap

Specify your

  • browser: chrome on osx
  • browser version: 84.0.4147.105 (Official Build) (64-bit)
  • surveyjs platform (angular or react or jquery or knockout or vue): react
  • surveyjs version: 1.7.25, 1.7.26 and 1.7.27
survey-library Bug Dropdown expand button too large and partially overlapped

image

survey-analytics Enhancement Implement save/restore state functionality for panel/chart/... visualizers (summary block)

See the https://surveyjs.answerdesk.io/ticket/details/t4720/save-state thread for more details

Is it possible to also now save state regarding other properties, such as the selected chart type, the ordering (default, ascending, descending)?

survey-analytics Bug Charts sometimes are rendered with very different size
survey-analytics Enhancement Charts (bar, probably others) - need an option to show percentage for answers instead of count
survey-analytics Enhancement Make private/public functionality for summary
survey-analytics Enhancement Permissions functionality

example:

console.log(visPanel.permissions);
visPanel.permissions = [
    {name:"name", visibility: 0}, 
    ...
];
survey-analytics Enhancement Save page size and column width in the state.
survey-analytics Bug Errors when set partial state

Version: v1.7.28, released at Wednesday, August 26, 2020, Total Issue Count: 11

Product
survey-library
Type
Bug
Description
Css Bug in React.js PanelDynamic Add new Button

My user was complaining that clicking add new on a dynamic panel was having no effect

What I found was everything seems ok on the first add. Every add after the first, the button gives a problem unless you click the button on the very bottom edge. Anywhere else and the user gets the arrow cursor instead of the hand and they can't click.

sorry to register this small bug for that is probably a simple fix for a css person, but I couldn't figure out what was causing it. (not being a css person)

example distilled down https://plnkr.co/edit/o2vInwNbg4PuOdTp?preview

recreate by trying to click on add new twice and having button receive focus

Seeing the issue on both edge and chrome

Happens in React.js; however same issue does NOT happen in JQuery

https://plnkr.co/edit/37AkVqqAJ88zLdgI

Product
survey-library
Type
Bug
Description
Could not use brackets in constant strings in expressions

The following expression, doesn't work: '"Hello: {" + {display_name} + "}"'. We should not parse brackets in string constants.

Product
survey-library
Type
Bug
Description
ImagePicker not working on React after v1.7.24/survey.react.js

When using imagepicker and surveyjs react components it's not possible to pick the first image available.

Screen Shot 2020-08-21 at 11 21 06 AM Screen Shot 2020-08-21 at 11 20 34 AM

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

It's not possible to select the first image on imagepicker when using any version after 1.7.24

What is the expected behavior?

We should be able to pick any image

How would you reproduce the current behavior (if this is a bug)?

Your website is broken, go there to imagepicker, change to react and try picking up the first one. The same problem happens if run locally.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/Examples/Library?id=questiontype-imagepicker&platform=Reactjs&theme=bootstrap

Specify your

  • browser: chrome on osx
  • browser version: 84.0.4147.105 (Official Build) (64-bit)
  • surveyjs platform (angular or react or jquery or knockout or vue): react
  • surveyjs version: 1.7.25, 1.7.26 and 1.7.27
Product
survey-library
Type
Bug
Description
Dropdown expand button too large and partially overlapped

image

See the https://surveyjs.answerdesk.io/ticket/details/t4720/save-state thread for more details

Is it possible to also now save state regarding other properties, such as the selected chart type, the ordering (default, ascending, descending)?

Product
survey-analytics
Type
Bug
Description
Charts sometimes are rendered with very different size
Product
survey-analytics
Type
Enhancement
Description
Make private/public functionality for summary
Product
survey-analytics
Type
Enhancement
Description
Permissions functionality

example:

console.log(visPanel.permissions);
visPanel.permissions = [
    {name:"name", visibility: 0}, 
    ...
];
Product
survey-analytics
Type
Enhancement
Description
Save page size and column width in the state.
Product
survey-analytics
Type
Bug
Description
Errors when set partial state

Version: v1.7.27, released at Thursday, August 20, 2020, Total Issue Count: 12

Product Type Description
survey-library Enhancement Make `imageLink` in image question type localizable

Are you requesting a feature, reporting a bug or asking a question?

Feature

What is the current behavior?

The imageLink property of a image type question does not support localization.

What is the expected behavior?

Ideally the property should support localization just like the survey logo URL.

survey-library Bug Notification on chaning a custom property in matrix column is not fired

On adding a new property into a question, for example: Serializer.addProperty("text", {name: "prop1", category: "general"}), matrix column will create this property dynamically on setting cellType to "text". However, the notification on changing this property in matrix column will not fired, because the property will actually changed in template question of this column. We should fire notification for this dynamic property, otherwise changing property value of the matrix column in the code will not update a SurveyJS Creator property editor.

survey-library Bug onValueChanging and onValueChanged behaves differently in cascade dropdowns scenario

Are you requesting a feature, reporting a bug or asking a question?

question/bug

What is the current behavior?

when using cascade dropdowns when changing the first one (region in the plunker) onValueChanging and onValueChanged callbacks are regularly called for that question but they are not for the second one (country). Specifically two incoherent things happened:

  • onValueChanging show undefined oldValue
  • onValueChanged is not even called

What is the expected behavior?

I track changes monitoring through onValueChang(ed/ing) callbacks and I would expect the same behavior for question that are not directly changed by the user

How would you reproduce the current behavior (if this is a bug)?

https://plnkr.co/edit/R5qx6igbm8uBpYeg?preview

survey-library Bug Setvalue trigger not executed in `questionPerPageMode`

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

In a specific scenario a setValue trigger is not executed

  • "questionsOnPageMode": "questionPerPage"
  • Target question is in a panel

Note that both of these are required for the erroneous behavior

What is the expected behavior?

It should successfully execute the trigger

How would you reproduce the current behavior (if this is a bug)?

See below

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/create-survey

Test code

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "radiogroup",
     "name": "question2",
     "choices": [
      "item1",
      "item2",
      "item3"
     ]
    },
    {
     "type": "panel",
     "name": "panel2",
     "elements": [
      {
       "type": "text",
       "name": "question3"
      }
     ],
     "title": "panel2"
    }
   ]
  }
 ],
 "triggers": [
  {
   "type": "setvalue",
   "expression": "{question2} notempty",
   "setToName": "question3",
   "setValue": "abcd"
  }
 ],
 "textUpdateMode": "onTyping",
 "questionsOnPageMode": "questionPerPage"
}

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:
survey-library Enhancement Introduce "rowValue" variable for matrix dropdown row

There is not access to row.value for a matrix dropdown row. It is needed in some column expressions (visibleIf, choicesVisibleIf) when you want to show/hide cell questions or some choices based on a row value. For more information, please read a ticket on SurveyJS support desk.

survey-library BreakingChange Do not remove values on hidding columns/rows in matrices if clearInvisibleValues is not onHidden

We are clearing values on hidding matrices rows and columns, even if clearInvisibleValues is "onComplete" (default) and even if it is "none". We are going to remove hidden rows/columns values from matrices only if clearInvisibleValues is "onHidden" and on finishing survey if clearInvisibleValues is "onComplete".

survey-library Bug 1.7.26 incorrectly executes logic

Are you requesting a feature, reporting a bug or asking a question?

Bug

Note that this bug breaks surveys that are running, so this is a big issue.

What is the current behavior?

Logic seems to be executed differently in .26 vs .25, see the attached screen recording. This is the JSON used.

{
 "pages": [
  {
   "name": "page",
   "elements": [
    {
     "type": "multipletext",
     "name": "V007",
     "title": "Question 1",
     "items": [
      {
       "name": "1",
       "title": "Answer 1"
      },
      {
       "name": "2",
       "title": "Answer 2"
      },
      {
       "name": "3",
       "title": "Answer 3"
      }
     ]
    },
    {
     "type": "html",
     "name": "question1",
     "html": "This should show the 3 answers\n<br/>\n{V007.1}<br/>\n{V007.2}<br/>\n{V007.3}<br/>"
    },
    {
     "type": "matrix",
     "name": "V008",
     "title": "This should show a row for each of the given answers",
     "columns": [
      {
       "value": "1",
       "text": "Positief"
      },
      {
       "value": "2",
       "text": "Neutraal"
      },
      {
       "value": "3",
       "text": "Negatief"
      }
     ],
     "rows": [
      {
       "value": "1",
       "text": "{V007.1}",
       "visibleIf": "{V007.1} notempty"
      },
      {
       "value": "2",
       "text": "{V007.2}",
       "visibleIf": "{V007.2} notempty"
      },
      {
       "value": "3",
       "text": "{V007.3}",
       "visibleIf": "{V007.3} notempty"
      }
     ],
     "hideIfRowsEmpty": true
    }
   ]
  }
 ]
}

Will attach a video in a sec

survey-library Bug Incorrect detection of the requiredInAllRowsError in matrix question

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

Incorrect detection of the requiredInAllRowsError error in QuestionMatrix when the value of any of the columns is 0 and the isAllRowRequired flag is set in the Vue version of SurveyJS. If you select a matrix item with a value of 0, then the requiredInAllRowsError will appear when the poll ends, as if this item was not selected at all. This behavior is only present in the Vue version of SurveyJS, in the others (jQuery, React, Knockout, Angular) everything works as expected.

How would you reproduce the current behavior (if this is a bug)?

Use Vue version of SurveyJS library and this config:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrix",
     "name": "question",
     "title": "What's up?",
     "isRequired": true,
     "columns": [
      {
       "value": 0,
       "text": "No"
      },
      {
       "value": 1,
       "text": "Maybe"
      },
      {
       "value": 2,
       "text": "Yes"
      }
     ],
     "rows": [
      {
       "value": 1,
       "text": "Question 1"
      },
      {
       "value": 2,
       "text": "Question 2"
      },
      {
       "value": 3,
       "text": "Question 3"
      }
     ],
     "isAllRowRequired": true
    }
   ]
  }
 ]
}

Choose any answer options, at least one option "No" and complete the survey.

survey-creator Enhancement Add creator.onGenerateNewName event

There is a way to set the name to a new created element, for example question. However, there is no way to say that the automatic generated name doesn't work for you and you need another one. Here is the example of usage:

creator.onGenerateNewName.add(function(sender, options) {
  //We need to have unique names with another survey
  options.isUnique = anotherSurvey.getQuestionByName(options.name);
});

Event declaration:

  /**
   * The event is called on generation a new name for a new created element.
   * <br/> sender the survey creator object that fires the event
   * <br/> options.element a new created survey element. It can be question, panel or page
   * <br/> options.name a new suggested name, that is unique for the current survey. You can suggest your own name. If it is unique, creator will assign it to the element.
   * <br/> options.isUnique a boolean property, set this property to false, if you want to ask Creator to generate another name
   */
  public onGenerateNewName: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();
survey-creator Enhancement Add unit test to creator.onConditionQuestionsGetList event

There were not unit test for creator.onConditionQuestionsGetList event.

survey-creator Bug Survey is not rendered after creator tab set changed or designer tab has been re-rendered
custom-widgets Bug New properties for widgets goes to "Other" category

UPDATE: All new properties for widgets missed the category name.

The sample seems to not be working when you select phone on input mask in the sample https://surveyjs.io/Examples/Survey-Creator?id=customwidgets&theme=bootstrap#content-result it just renders the work 'phone' in the input box

The other question I had (and the reason I was looking at the sample) was:

how can I get the Input Mask property up to the general tab? I tried the normal way of moving items:

 SurveyJSCreator
            .SurveyQuestionEditorDefinition
            .definition["survey"]
            .properties = [
...
     { name: "inputFormat", tab: "general", title:"My Mask" },
]

It didn't work, I realize this is a widget, so maybe there's a different way of doing it.

Thanks Marc

Version: v1.7.27, released at Thursday, August 20, 2020, Total Issue Count: 12

Product
survey-library
Type
Enhancement
Description
Make `imageLink` in image question type localizable

Are you requesting a feature, reporting a bug or asking a question?

Feature

What is the current behavior?

The imageLink property of a image type question does not support localization.

What is the expected behavior?

Ideally the property should support localization just like the survey logo URL.

On adding a new property into a question, for example: Serializer.addProperty("text", {name: "prop1", category: "general"}), matrix column will create this property dynamically on setting cellType to "text". However, the notification on changing this property in matrix column will not fired, because the property will actually changed in template question of this column. We should fire notification for this dynamic property, otherwise changing property value of the matrix column in the code will not update a SurveyJS Creator property editor.

Are you requesting a feature, reporting a bug or asking a question?

question/bug

What is the current behavior?

when using cascade dropdowns when changing the first one (region in the plunker) onValueChanging and onValueChanged callbacks are regularly called for that question but they are not for the second one (country). Specifically two incoherent things happened:

  • onValueChanging show undefined oldValue
  • onValueChanged is not even called

What is the expected behavior?

I track changes monitoring through onValueChang(ed/ing) callbacks and I would expect the same behavior for question that are not directly changed by the user

How would you reproduce the current behavior (if this is a bug)?

https://plnkr.co/edit/R5qx6igbm8uBpYeg?preview

Product
survey-library
Type
Bug
Description
Setvalue trigger not executed in `questionPerPageMode`

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

In a specific scenario a setValue trigger is not executed

  • "questionsOnPageMode": "questionPerPage"
  • Target question is in a panel

Note that both of these are required for the erroneous behavior

What is the expected behavior?

It should successfully execute the trigger

How would you reproduce the current behavior (if this is a bug)?

See below

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/create-survey

Test code

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "radiogroup",
     "name": "question2",
     "choices": [
      "item1",
      "item2",
      "item3"
     ]
    },
    {
     "type": "panel",
     "name": "panel2",
     "elements": [
      {
       "type": "text",
       "name": "question3"
      }
     ],
     "title": "panel2"
    }
   ]
  }
 ],
 "triggers": [
  {
   "type": "setvalue",
   "expression": "{question2} notempty",
   "setToName": "question3",
   "setValue": "abcd"
  }
 ],
 "textUpdateMode": "onTyping",
 "questionsOnPageMode": "questionPerPage"
}

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:
Product
survey-library
Type
Enhancement
Description
Introduce "rowValue" variable for matrix dropdown row

There is not access to row.value for a matrix dropdown row. It is needed in some column expressions (visibleIf, choicesVisibleIf) when you want to show/hide cell questions or some choices based on a row value. For more information, please read a ticket on SurveyJS support desk.

We are clearing values on hidding matrices rows and columns, even if clearInvisibleValues is "onComplete" (default) and even if it is "none". We are going to remove hidden rows/columns values from matrices only if clearInvisibleValues is "onHidden" and on finishing survey if clearInvisibleValues is "onComplete".

Product
survey-library
Type
Bug
Description
1.7.26 incorrectly executes logic

Are you requesting a feature, reporting a bug or asking a question?

Bug

Note that this bug breaks surveys that are running, so this is a big issue.

What is the current behavior?

Logic seems to be executed differently in .26 vs .25, see the attached screen recording. This is the JSON used.

{
 "pages": [
  {
   "name": "page",
   "elements": [
    {
     "type": "multipletext",
     "name": "V007",
     "title": "Question 1",
     "items": [
      {
       "name": "1",
       "title": "Answer 1"
      },
      {
       "name": "2",
       "title": "Answer 2"
      },
      {
       "name": "3",
       "title": "Answer 3"
      }
     ]
    },
    {
     "type": "html",
     "name": "question1",
     "html": "This should show the 3 answers\n<br/>\n{V007.1}<br/>\n{V007.2}<br/>\n{V007.3}<br/>"
    },
    {
     "type": "matrix",
     "name": "V008",
     "title": "This should show a row for each of the given answers",
     "columns": [
      {
       "value": "1",
       "text": "Positief"
      },
      {
       "value": "2",
       "text": "Neutraal"
      },
      {
       "value": "3",
       "text": "Negatief"
      }
     ],
     "rows": [
      {
       "value": "1",
       "text": "{V007.1}",
       "visibleIf": "{V007.1} notempty"
      },
      {
       "value": "2",
       "text": "{V007.2}",
       "visibleIf": "{V007.2} notempty"
      },
      {
       "value": "3",
       "text": "{V007.3}",
       "visibleIf": "{V007.3} notempty"
      }
     ],
     "hideIfRowsEmpty": true
    }
   ]
  }
 ]
}

Will attach a video in a sec

Product
survey-library
Type
Bug
Description
Incorrect detection of the requiredInAllRowsError in matrix question

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

Incorrect detection of the requiredInAllRowsError error in QuestionMatrix when the value of any of the columns is 0 and the isAllRowRequired flag is set in the Vue version of SurveyJS. If you select a matrix item with a value of 0, then the requiredInAllRowsError will appear when the poll ends, as if this item was not selected at all. This behavior is only present in the Vue version of SurveyJS, in the others (jQuery, React, Knockout, Angular) everything works as expected.

How would you reproduce the current behavior (if this is a bug)?

Use Vue version of SurveyJS library and this config:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrix",
     "name": "question",
     "title": "What's up?",
     "isRequired": true,
     "columns": [
      {
       "value": 0,
       "text": "No"
      },
      {
       "value": 1,
       "text": "Maybe"
      },
      {
       "value": 2,
       "text": "Yes"
      }
     ],
     "rows": [
      {
       "value": 1,
       "text": "Question 1"
      },
      {
       "value": 2,
       "text": "Question 2"
      },
      {
       "value": 3,
       "text": "Question 3"
      }
     ],
     "isAllRowRequired": true
    }
   ]
  }
 ]
}

Choose any answer options, at least one option "No" and complete the survey.

Product
survey-creator
Type
Enhancement
Description
Add creator.onGenerateNewName event

There is a way to set the name to a new created element, for example question. However, there is no way to say that the automatic generated name doesn't work for you and you need another one. Here is the example of usage:

creator.onGenerateNewName.add(function(sender, options) {
  //We need to have unique names with another survey
  options.isUnique = anotherSurvey.getQuestionByName(options.name);
});

Event declaration:

  /**
   * The event is called on generation a new name for a new created element.
   * <br/> sender the survey creator object that fires the event
   * <br/> options.element a new created survey element. It can be question, panel or page
   * <br/> options.name a new suggested name, that is unique for the current survey. You can suggest your own name. If it is unique, creator will assign it to the element.
   * <br/> options.isUnique a boolean property, set this property to false, if you want to ask Creator to generate another name
   */
  public onGenerateNewName: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();
Product
survey-creator
Type
Enhancement
Description
Add unit test to creator.onConditionQuestionsGetList event

There were not unit test for creator.onConditionQuestionsGetList event.

Product
custom-widgets
Type
Bug
Description
New properties for widgets goes to "Other" category

UPDATE: All new properties for widgets missed the category name.

The sample seems to not be working when you select phone on input mask in the sample https://surveyjs.io/Examples/Survey-Creator?id=customwidgets&theme=bootstrap#content-result it just renders the work 'phone' in the input box

The other question I had (and the reason I was looking at the sample) was:

how can I get the Input Mask property up to the general tab? I tried the normal way of moving items:

 SurveyJSCreator
            .SurveyQuestionEditorDefinition
            .definition["survey"]
            .properties = [
...
     { name: "inputFormat", tab: "general", title:"My Mask" },
]

It didn't work, I realize this is a widget, so maybe there's a different way of doing it.

Thanks Marc

Version: v1.7.26, released at Tuesday, August 11, 2020, Total Issue Count: 10

Product Type Description
survey-library Enhancement Can we add textUpdateMode to other value in for dropdown questions

Are you requesting a feature, reporting a bug or asking a question?

Asking a question/Requesting a feature.

What is the current behavior?

Add textUpdateMode to "other" value in dropdown questions.

What is the expected behavior?

Can we please add textUpdateMode to other value in for dropdown questions

How would you reproduce the current behavior (if this is a bug)?

I tried this, https://plnkr.co/edit/0F73cRc8zGMYa2Aw, but it is not working.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:
survey-library Enhancement Correct defaultValue and correctAnswer on JSON loading

On changing question type for radiogroup/dropdown/checkbox, we can have incorrect defaultValue and correctAnswer properties. They are a single value for radiogroup/dropdown and array for checkbox. We have to correct them accordingly on setting these values.

survey-library Enhancement Do not allow to set question/page/panel name with traling space

Remove trailing spaces on setting question/page/panel name and do not allow to use in question name.

survey-library Enhancement Unacceptable performance for a large survey with many expression questions

The performance, on running conditions for a large survey over 10k lines with a lot of expressions in it, is unacceptable. We should change our algorithm that re-run conditions on changing the expression value. UPDATE: The performance for the particular survey was imporoved in 20-30 times.

survey-library Bug react: onValueChanging callbacks are called twice after selecting an option in dropdown

Are you requesting a feature, reporting a bug or asking a question?

question/bug

What is the current behavior?

In my adoption of surveyJS engine I heavily use onValueChanging event but I don't understand why attached callbacks are called twice after selecting an option

What is the expected behavior?

callbacks should be called once

How would you reproduce the current behavior (if this is a bug)?

see console https://plnkr.co/edit/81ZISxzNBgls32Ro

  • surveyjs platform: react
survey-library Bug None of your Print to PDF example are working

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

In you documentation, none of your examples are working.

Try:

On load we have: Uncaught TypeError: Cannot read property 'API' of undefined

Then... ReferenceError: SurveyPDF is not defined

What is the expected behavior?

Examples are working

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser: chrome, edge
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue, jQuery
  • surveyjs version:
survey-creator Bug IE Reordering questions/choices

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

Dragging and dropping is not working in IE 11

What is the expected behavior?

Dragging and dropping is available

How would you reproduce the current behavior (if this is a bug)?

Create a new test survey with multiple questions, try to reorder in IE11

Provide the test code and the tested page URL (if applicable)

Specify your

  • browser: IE 11
  • editor version: 1.7.23
survey-creator Bug Clicking the "down" arrow on a dropdown question does not open the dropdown

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

When clicking the "down" arrow at the end of a dropdown question, nothing happens

What is the expected behavior?

The dropdown opens

How would you reproduce the current behavior (if this is a bug)?

Create a fresh survey on the creator and add a dropdown question, then press the arrow on the far right of the dropdown input

Provide the test code and the tested page URL (if applicable)

Specify your

  • browser: Chrome, Firefox, Edge
  • editor version: 1.7.23
survey-creator Bug Select the first question on the page on deleting a question in a panel

If there are several questions in the panel and you delete one question, then the next question in the panel should be selected or the panel, if there is no any question there. The original issue was created in SurveyJS support desk.

survey-creator Bug Select question... value duplicates in custom expression dropdown in logic tab
  1. Go to https://surveyjs.io/create-survey
  2. Go to logic tab
  3. Add new
  4. Choose custom expression in define action section
  5. ???
  6. There are two "Select question..." choices in dropdown

image

Version: v1.7.26, released at Tuesday, August 11, 2020, Total Issue Count: 10

Product
survey-library
Type
Enhancement
Description
Can we add textUpdateMode to other value in for dropdown questions

Are you requesting a feature, reporting a bug or asking a question?

Asking a question/Requesting a feature.

What is the current behavior?

Add textUpdateMode to "other" value in dropdown questions.

What is the expected behavior?

Can we please add textUpdateMode to other value in for dropdown questions

How would you reproduce the current behavior (if this is a bug)?

I tried this, https://plnkr.co/edit/0F73cRc8zGMYa2Aw, but it is not working.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:
Product
survey-library
Type
Enhancement
Description
Correct defaultValue and correctAnswer on JSON loading

On changing question type for radiogroup/dropdown/checkbox, we can have incorrect defaultValue and correctAnswer properties. They are a single value for radiogroup/dropdown and array for checkbox. We have to correct them accordingly on setting these values.

Product
survey-library
Type
Enhancement
Description
Do not allow to set question/page/panel name with traling space

Remove trailing spaces on setting question/page/panel name and do not allow to use in question name.

Product
survey-library
Type
Enhancement
Description
Unacceptable performance for a large survey with many expression questions

The performance, on running conditions for a large survey over 10k lines with a lot of expressions in it, is unacceptable. We should change our algorithm that re-run conditions on changing the expression value. UPDATE: The performance for the particular survey was imporoved in 20-30 times.

Are you requesting a feature, reporting a bug or asking a question?

question/bug

What is the current behavior?

In my adoption of surveyJS engine I heavily use onValueChanging event but I don't understand why attached callbacks are called twice after selecting an option

What is the expected behavior?

callbacks should be called once

How would you reproduce the current behavior (if this is a bug)?

see console https://plnkr.co/edit/81ZISxzNBgls32Ro

  • surveyjs platform: react
Product
survey-library
Type
Bug
Description
None of your Print to PDF example are working

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

In you documentation, none of your examples are working.

Try:

On load we have: Uncaught TypeError: Cannot read property 'API' of undefined

Then... ReferenceError: SurveyPDF is not defined

What is the expected behavior?

Examples are working

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser: chrome, edge
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue, jQuery
  • surveyjs version:
Product
survey-creator
Type
Bug
Description
IE Reordering questions/choices

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

Dragging and dropping is not working in IE 11

What is the expected behavior?

Dragging and dropping is available

How would you reproduce the current behavior (if this is a bug)?

Create a new test survey with multiple questions, try to reorder in IE11

Provide the test code and the tested page URL (if applicable)

Specify your

  • browser: IE 11
  • editor version: 1.7.23

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

When clicking the "down" arrow at the end of a dropdown question, nothing happens

What is the expected behavior?

The dropdown opens

How would you reproduce the current behavior (if this is a bug)?

Create a fresh survey on the creator and add a dropdown question, then press the arrow on the far right of the dropdown input

Provide the test code and the tested page URL (if applicable)

Specify your

  • browser: Chrome, Firefox, Edge
  • editor version: 1.7.23

If there are several questions in the panel and you delete one question, then the next question in the panel should be selected or the panel, if there is no any question there. The original issue was created in SurveyJS support desk.

  1. Go to https://surveyjs.io/create-survey
  2. Go to logic tab
  3. Add new
  4. Choose custom expression in define action section
  5. ???
  6. There are two "Select question..." choices in dropdown

image

Version: v1.7.25, released at Tuesday, August 4, 2020, Total Issue Count: 30

Product Type Description
survey-library Enhancement Css class for the panel's required text span

based on the https://surveyjs.answerdesk.io/ticket/details/T4782

for the modern theme:

.sv-panel__required-text {}
survey-library Bug Remove code duplication for getItemClass functions

We have a code duplication for different platforms (knockout, react and vue) for getItemClass() for radigroup, checkbox and image picker. We have to make the same API for all platforms and move these functions into model to remove the code duplication.

survey-library Enhancement Allow to set different styles for checkbox items: "Select All" and "None"

Two new item styles were added into checkbox. For standard theme:

    itemSelectAll: "sv_q_checkbox_selectall",
    itemNone: "sv_q_checkbox_none",

For modern theme:

    itemSelectAll: "sv-checkbox--selectall",
    itemNone: "sv-checkbox--none",

Here is the example for rendering "Select All" in bold text for standard theme.

     .sv_q_checkbox_selectall {
        font-weight: bold;
      }
survey-library Bug Add imageLinkName into choicesByUrl type

We have "choicesFromWeb" property for image picker. However, it doesn't currently make sense since we do not have the ability to set the image link name and set imageLink property into image picker choices from the web service. Solution is to add imageLinkName property that will work for image picker question only.

survey-library Bug Matrix Header, Cell Allignment problem (default theme)

image

survey-creator Bug Survey-Creator: Property Type "multiplevalues"
survey-creator Enhancement The onCollectionItemDeleting event should be called from adorners (inplace choices editors)
survey-creator Enhancement Make property.displayName a higher priority than localization

For example, you want to change the display name for the "visible" property for question. Make it different from others objects (page, panel). You can do it by changing the JSON property displayName attribute.

Survey.Serializer.findProperty("question", "visible").displayName = "Custom Display Value For Visible Question Property";
survey-creator Bug single input question has focus in design time

1cc3b0b305

survey-creator Bug Condition Editor should use "text" question when setting value for "expression" question

Expression question is read-only. It doesn't make sense to use it for editing value. We have to use "text" question instead.

survey-analytics Enhancement Table results - implement option of deleting multiple records at a time
survey-analytics Enhancement Support the change language functionality
survey-analytics Enhancement Refactor visualizer code responsible for DOM elements manipulation (introduce helpers objects)
survey-analytics Enhancement Introduce an option to show values instead of titles in chart labels

See the https://surveyjs.answerdesk.io/ticket/details/t4720/save-state thread for more details

It may be possible to select the question value instead of the title in the labels? Sometimes the titles of the options are huge and that causes the charts to be quite difficult to read.

survey-analytics Bug Comment-type questions do not update its values as responses get filtered interactively.

Problem: I noticed that one of the features of survey-analytics "Interactive filtering for the select type questions" was not filtering the comment-type questions as well. Ther data was correctly updated as the filter applied but changes were not rendered on the screen.

How to reproduce:

Use a Survey with select type questions and comment type questions. Render the responses using the VisualizationPanel. Select one bar to interactively filter responses. Expected: Only comments belonging to the filtered responses are shown. Actual: Comments from all responses are shown.

survey-analytics Bug Show column not working after updating columns.

Steps to reproduce:

  1. Set column's visibility to 1(Invisible).
  2. Update columns through setter.
  3. Choose column in "Show column" dropdown.
  4. Column won't appear.
survey-analytics Bug Row's details button disappears after columns reorder.

Steps to reproduce:

  1. Move column.
  2. "Details" button disappears.
survey-analytics BreakingChange Should rename "update" method to "updateData"

for better api

this.surveyAnalyticsDataTables.updateData(data);
this.surveyAnalyticsVisPanel.updateData(data);
survey-analytics Enhancement Eliminate visualizers re-creation in panel on every render
survey-analytics Bug Save page size and current page number after updating.

Page size and current page number are restored to defaults after updating tables.

survey-analytics Enhancement Add title attribute for tabulator's cells to show full answer.

Add title attribute to show full answers and titles on the cell's hover.

survey-analytics Enhancement [Refactoring] Segregate layout manager from visualizationPanel
survey-analytics Enhancement [Refactoring] Extract "filterInfo" structure into a separate helper class
survey-analytics Bug Filter on click doesn't work for false value of boolean visualizer

image

survey-analytics Bug Number visualizer (gauge/bullet) doesn't react on change chart type
survey-analytics Bug SelectBase - items order change doesn't trigger re-rendering
survey-analytics Bug Matrix question destroys inner panel on data selection and breaks visualizer
survey-analytics Enhancement Add destroy method for table's extensions

Remove callbacks from the table's events when destroying extension.

survey-analytics Bug VizPanel: moveVisibleElement

if hidden elements exists moveElement starts to operate hidden elemenets. It should be another method moveVisibleElement which will pass correct indexes to moveElement (only visible elements).

survey-analytics Bug Drag bug: when manipulating with data dragging of question is fired

Version: v1.7.25, released at Tuesday, August 4, 2020, Total Issue Count: 30

Product
survey-library
Type
Enhancement
Description
Css class for the panel's required text span

based on the https://surveyjs.answerdesk.io/ticket/details/T4782

for the modern theme:

.sv-panel__required-text {}
Product
survey-library
Type
Bug
Description
Remove code duplication for getItemClass functions

We have a code duplication for different platforms (knockout, react and vue) for getItemClass() for radigroup, checkbox and image picker. We have to make the same API for all platforms and move these functions into model to remove the code duplication.

Product
survey-library
Type
Enhancement
Description
Allow to set different styles for checkbox items: "Select All" and "None"

Two new item styles were added into checkbox. For standard theme:

    itemSelectAll: "sv_q_checkbox_selectall",
    itemNone: "sv_q_checkbox_none",

For modern theme:

    itemSelectAll: "sv-checkbox--selectall",
    itemNone: "sv-checkbox--none",

Here is the example for rendering "Select All" in bold text for standard theme.

     .sv_q_checkbox_selectall {
        font-weight: bold;
      }
Product
survey-library
Type
Bug
Description
Add imageLinkName into choicesByUrl type

We have "choicesFromWeb" property for image picker. However, it doesn't currently make sense since we do not have the ability to set the image link name and set imageLink property into image picker choices from the web service. Solution is to add imageLinkName property that will work for image picker question only.

Product
survey-library
Type
Bug
Description
Matrix Header, Cell Allignment problem (default theme)

image

Product
survey-creator
Type
Bug
Description
Survey-Creator: Property Type "multiplevalues"
Product
survey-creator
Type
Enhancement
Description
Make property.displayName a higher priority than localization

For example, you want to change the display name for the "visible" property for question. Make it different from others objects (page, panel). You can do it by changing the JSON property displayName attribute.

Survey.Serializer.findProperty("question", "visible").displayName = "Custom Display Value For Visible Question Property";
Product
survey-creator
Type
Bug
Description
single input question has focus in design time

1cc3b0b305

Expression question is read-only. It doesn't make sense to use it for editing value. We have to use "text" question instead.

Product
survey-analytics
Type
Enhancement
Description
Table results - implement option of deleting multiple records at a time
Product
survey-analytics
Type
Enhancement
Description
Support the change language functionality
Product
survey-analytics
Type
Enhancement
Description
Introduce an option to show values instead of titles in chart labels

See the https://surveyjs.answerdesk.io/ticket/details/t4720/save-state thread for more details

It may be possible to select the question value instead of the title in the labels? Sometimes the titles of the options are huge and that causes the charts to be quite difficult to read.

Problem: I noticed that one of the features of survey-analytics "Interactive filtering for the select type questions" was not filtering the comment-type questions as well. Ther data was correctly updated as the filter applied but changes were not rendered on the screen.

How to reproduce:

Use a Survey with select type questions and comment type questions. Render the responses using the VisualizationPanel. Select one bar to interactively filter responses. Expected: Only comments belonging to the filtered responses are shown. Actual: Comments from all responses are shown.

Product
survey-analytics
Type
Bug
Description
Show column not working after updating columns.

Steps to reproduce:

  1. Set column's visibility to 1(Invisible).
  2. Update columns through setter.
  3. Choose column in "Show column" dropdown.
  4. Column won't appear.
Product
survey-analytics
Type
Bug
Description
Row's details button disappears after columns reorder.

Steps to reproduce:

  1. Move column.
  2. "Details" button disappears.
Product
survey-analytics
Type
BreakingChange
Description
Should rename "update" method to "updateData"

for better api

this.surveyAnalyticsDataTables.updateData(data);
this.surveyAnalyticsVisPanel.updateData(data);
Product
survey-analytics
Type
Enhancement
Description
Eliminate visualizers re-creation in panel on every render
Product
survey-analytics
Type
Bug
Description
Save page size and current page number after updating.

Page size and current page number are restored to defaults after updating tables.

Product
survey-analytics
Type
Enhancement
Description
Add title attribute for tabulator's cells to show full answer.

Add title attribute to show full answers and titles on the cell's hover.

Product
survey-analytics
Type
Enhancement
Description
[Refactoring] Segregate layout manager from visualizationPanel
Product
survey-analytics
Type
Enhancement
Description
[Refactoring] Extract "filterInfo" structure into a separate helper class
Product
survey-analytics
Type
Bug
Description
Filter on click doesn't work for false value of boolean visualizer

image

Product
survey-analytics
Type
Bug
Description
Number visualizer (gauge/bullet) doesn't react on change chart type
Product