select_multiple works, select2_multiple don't
See original GitHub issueWhen I try to use a select2_multiple field instead of a select_multiple field, I get this error:
ErrorException in b58d2ac85e3cfb89e50920aa215a69bd96d9acac.php line 25: Array to string conversion (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php) (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php) (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php)
I changed nothing else the field type, from select_multiple
to select2_multiple
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Select2 multiple: true not working - Stack Overflow
From the docs: "When Select2 is attached to a select element {multiple:true} will be ignored and select's multiple attribute will be used instead."....
Read more >Select2 doesn't work with multiple <select> with same id #5501
Select2 doesn't convert multiple elements that share same id attribute (I know that id attribute must be unique). This used to work just ......
Read more >Basic usage | Select2 - The jQuery replacement for select boxes
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and pagination (infinite scrolling) of results.
Read more >Select2 3.5.3
If this example stops working, you have most likely reached the usage limit for the GitHub ... Initial value that is selected if...
Read more >Select2 Multiple Select - Unable to change font-size of options
select2({ width: 'auto', placeholder: 'Select multiple items', selectionAdapter: SelectionAdapter, dropdownAdapter: DropdownAdapter, allowClear: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Magic happens switching to PHP 7! 😂
EUREKA! Who knew it was a mistake that small? 😃 You were testing on PHP 7, I was not.