surveyjs / survey-library

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

"Select All" for imagepicker #2188

Open tyzzzon opened 4 years ago

tyzzzon commented 4 years ago

Hey guys. Is it possible to have "Select all images" option for imagepicker widget?

tsv2013 commented 4 years ago

Right no there is no such an option. How do you think it should look like?

IMO: If user can check all the items, probably he needn't images picker - he selects all regardless the content

tyzzzon commented 4 years ago

There are about 150 pictures(they are styled into one composition as parts) in one imagepicker and a user is able to select 1 or more. So the user may want to select all the pictures and it is too long to select every picture one by one (there are 2 similar imagepickers with different descriptions on the same page). I think it should look like a checkbox or a button that selects all the images in an imagepicker. Or maybe the button will not cause any visual changes but will return value for all the images in response json.

tsv2013 commented 4 years ago

Thank you for the clarification. We'll keep it in mind during future improvements planning.

As a workarownd you can add an item with sprcific picture and value ("select all"), subscribe the https://surveyjs.io/Documentation/Library?id=surveymodel#onValueChanged event and select all items if the custom "select all" has been selected.

tyzzzon commented 4 years ago

Thankyou. Will try the workaround.