custom-widgets icon indicating copy to clipboard operation
custom-widgets copied to clipboard

SortableJS does not support choice visibility

Open SamMousa opened this issue 4 years ago • 0 comments

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

Bug

What is the current behavior?

SortableList does not support choice visibility via

  • choicesVisibleIf
  • individual choice visibility settings

What is the expected behavior?

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

https://plnkr.co/edit/IoAY0GAJNlpgNxTY3jqP?p=preview

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

Tested page URL: https://plnkr.co/edit/IoAY0GAJNlpgNxTY3jqP?p=preview

Test code

var json = {
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "checkbox",
     "name": "question1",
     "choices": [
      "item1",
      "item2",
      "item3"
     ]
    },
    {
     "type": "sortablelist",
     "name": "question2",
     "choices": [
      {
       "value": "item1",
       "visibleIf": "{question1} contains \"item1\""
      },
      "item2",
      "item3"
     ]
    }
   ]
  }
 ]
};

Specify your

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

SamMousa avatar Sep 27 '19 15:09 SamMousa