All Questions
Tagged with multiselect magento2
31 questions
1
vote
1
answer
30
views
Getting the right format for saving multiselect customer attribute issue?
This is my code:
$values = ['value1','value2','value3'];
$customer->setCustomAttribute('customer_attribute_code', $values);
//\Magento\Customer\Api\...
0
votes
2
answers
932
views
load region by country multi select in ui component magento 2
In the Ui-component of Magento 2, I see that we can do this to load region by country.
<fieldset name="delivery_area" sortOrder="90">
<argument name="data&...
1
vote
0
answers
54
views
Multiselect Attribute created through module can't be set programatically
I am on a Magento 2.1 installation using a Venus Theme Module called Brands 2.0.
The module creates a product_brand multi select attribute with the following code:
$eavSetup = $this->...
0
votes
0
answers
390
views
How to Display and change values of 2nd multi-select dropdown by selecting 1st drop-down?
I want to show multi-select drop-down with check-boxes(like categories on product edit page in admin panel) which values are depends on 1st drop-down(which is single select) in my custom Ui component ...
0
votes
1
answer
1k
views
How to set multiselect value in jquery
I've follow this solution to make multiselect works without using "Ctrl" in keyboard.
http://jsfiddle.net/xQqbR/1022/
And here's the result:
Its work great, but i can't save in database.
...
2
votes
1
answer
1k
views
magento 2 in category multi select attribute in option is not show?
:InstallData
<?php
namespace Vender\Extension\Setup;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\...
1
vote
0
answers
58
views
Magento 2 - How to auto checked a multiselect ui-component?
I have a ui-component
<field name="interest" formElement="multiselect">
<argument name="data" xsi:type="array">
&...
2
votes
0
answers
198
views
magento 2 keep the applied filters in opened state
I wish to make changes in the layered navigation filter, so that all the applied filters are visible(opened state).
For example I am selecting red in color filter, all other options in color filter ...
0
votes
1
answer
3k
views
How to add a multi select category and attribute filter on catalog page
My magento 2.3.3 theme provides me single select from same category or attribute.
Here if i select a sub category all the other categories will get disappears because it is single select.
But i want ...
0
votes
0
answers
131
views
Magento 2 multi-select field in block not displaying values in magento admin panel
I have created custom form in which I want a multi select field and display dynamic data. I have created a collection object in the form of array and passing it as a value for my multi select field.
...
0
votes
3
answers
2k
views
Admin Grid "Select All" for mass action only sends the visible IDs
I'm having some trouble getting "Select All" working properly for a custom grid.
I have a massDelete action working and deleting multiple items. I have a multiselect column which, after I run a "...
0
votes
1
answer
160
views
Help please with correct saving multiselect field for Store view edit form
Please help with correct saving adding custom field for Store View edit form.
Default Magento Store view edit form:
Stores->All Stores->Any Store
https://screencast.com/t/WPA3owq3
https://...
4
votes
1
answer
3k
views
Magento 2 - Admin form Multi Select field issue
I added this code for Multi Select in my form.
File Path Should be like: app\code\Vendor\Module\Block\Adminhtml\Mpages\Edit\Tab\Main.php
$fieldset->addField(
'categories',
...
0
votes
2
answers
3k
views
magento 2.2 trying to save multi select value in database
I am trying to save multi select value in DB. But getting error Array to string conversion in
/var/www/html/devstore/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php
on line 2999
Template file ...
0
votes
1
answer
1k
views
Magento 2 ui multi-select preselected values
I am new at Magento 2,
UI multi-select component render store views group by websites and stores,
but when I am editing I need saved values of store views of certain record to be preselected in that ...
0
votes
1
answer
1k
views
Magento 2.3 UI MULTISELECT
I am having problems with dynamic display store views which are grouped by their website and having selected values if I am editing existing data.
What I achieved, displaying store views, and saving ...
1
vote
2
answers
5k
views
Magento 2.2.5: How to set checkbox checked with Grid addColumn()
I have an issue here with the checkbox checked.
I've read a lot of solution, but they always say add the 'values' => array('something')
I've followed that solution but nothing change. I've deploy ...
4
votes
1
answer
2k
views
Magento 2.2.5: explain about how the multi select "available_sort_by" get data
I'm looking for an explanation about how the multi-select "available_sort_by" get data.
Like you can see in the image below, they are using UI component to render this multi-select. And I don't ...
0
votes
1
answer
438
views
How to unselect a multiselect field in my custom modul edit page?
I have added a multiselect field to a fieldset in my form.xml.
<column name="ghs_pictogram_id">
<argument name="data" xsi:type="array">
<item name="options" ...
0
votes
0
answers
383
views
Select All Rows after applying filter to Magento2 Extended Grid
I am working on Magento 2.2.0. I have an extended grid in my custom module. When I apply the filter to the grid and choose "Select All" from the drop-down, it is not working. All the row ids are ...
7
votes
3
answers
11k
views
Magento2 ui component multiselect selected options on edit
I'm trying to show the selected options in a multiselect in a custom admin module form.
The data for the multi select field is saved in the database.
What i have as field:
<field name="...
1
vote
1
answer
766
views
Multi select options for Magento2 custom Attribute [closed]
I have created one custom attribute for Category with Multi select option.I am trying to get dynamic values from source file but first value only printing in multi select please give solution and ...
3
votes
5
answers
11k
views
Magento 2 - Need a multi-select filter in place of dropdown in admin grid
I have added a new category filter to product grid following a nice tutorial is given here - https://chillydraji.wordpress.com/2016/11/29/add-category-filter-to-product-grid-in-magento2/
Now I want ...
1
vote
1
answer
2k
views
Magento2 : How to retrieve Values from keys in System multiselect field
I have implemented a system configuration multiselect field (system.xml).
<field id="foolist" translate="label" type="multiselect" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore=...
4
votes
1
answer
2k
views
Magento 2 How to assign custom multiselect attribute values to product?
$_product->setData($attributeCode, $attributeValue);
I can assign "normal" attributes to product like that and those attributes are visible on product page and admin panel. If I want to assign ...
1
vote
0
answers
116
views
select entities multiselect attribute which stored as comma separated ints in varchar table
Some product attribute is multiselect and stored as:
954,955,956,957,958,959 in database
How to select products with 954 option id ?
like seems to be not accurate, string should be spitted by comma,...
3
votes
3
answers
8k
views
Magento 2 - add Multiselect Store Views in admin Form
I am developing a custom module in Magento 2.
I would like to add to the editing form a multiselect to allow users to select the store view. In Magento 1.9 it is done in this way:
$fieldset->...
1
vote
2
answers
1k
views
Magento2 : multi select box is not showing option with custom source
Working on custom extension, I have implemented multi select option using custom source. It don't show the option in multi select box. Anybody knows the reason?
Check screenshot,
$eavSetup->...
5
votes
4
answers
14k
views
Magento 2 - Category list for custom magento system configuration section
My problem to get all available categories and display them in a system config multi-select field list.
Here is a link for Magento 1.x. How can it be achieved for Magento 2.x?
0
votes
2
answers
2k
views
Magento 2 - Helper function to prepare data for backend multiselect field
I'm trying to use a stores allowed currencies to create a multiselect with these values for a custom module.
Now my question is, how do I best prepare the data array for the mutliselect field?
I ...
0
votes
1
answer
609
views
Magento 2 how to make group attribute in customer info multiselect?
How to make it to allow customers belonging to multiple groups? Any suggestions will be appreciated. Thanks.