surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4k stars 780 forks source link

A "Complete" trigger doesn't work when it is based in a Checkboxes question with `valuePropertyName` set #8434

Closed andrewtelnov closed 1 week ago

andrewtelnov commented 1 week ago

Complete trigger doesn't work for this JSON:

{
    "pages": [
      {
        "name": "page1",
        "elements": [
          {
            "type": "checkbox",
            "name": "models",
            "choices": [1, 2, 3],
            "showNoneItem": true,
            "valuePropertyName": "model_id"
          }
        ]
      },
      {
        "name": "page2",
        "elements": [
          {
            "type": "text",
            "name": "question1"
          }
        ]
      }
    ],
    "triggers": [
      {
        "type": "complete",
        "expression": "{models-unwrapped} = ['none']"
      }
    ]
  }