Magento 2 - Multiselect broken
Is this ordinary workplace experiences for a job in Software Engineering?
Existence of Riemann surface, holomorphic maps
Play Zip, Zap, Zop
What is the wife of a henpecked husband called?
Airplane generations - how does it work?
Potential client has a problematic employee I can't work with
Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?
TikZ graph edges not drawn nicely
Square Root Distance from Integers
Which communication protocol is used in AdLib sound card?
Cat is tipping over bed-side lamps during the night
Is using an 'empty' metaphor considered bad style?
How much mayhem could I cause as a fish?
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
any clues on how to solve these types of problems within 2-3 minutes for competitive exams
How does Leonard in "Memento" remember reading and writing?
Boss asked me to sign a resignation paper without a date on it along with my new contract
How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?
Plausible reason for gold-digging ant
Has any human ever had the choice to leave Earth permanently?
Why are all my replica super soldiers young adults or old teenagers?
What game did these black and yellow dice come from?
local storage : Uncaught TypeError: Cannot set property 'innerHTML' of null
Has Britain negotiated with any other countries outside the EU in preparation for the exit?
Magento 2 - Multiselect broken
I'm testing to add a multiselect input in my BO form. But, the multiselect output is broken (however, the value selected is really selected in BO, and values are assigned). When I select a value, the multiselect selects all the values (all the values are highlighted ; just graphically).
My XML :
<field name="my_field">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MyCompanyMyModuleModelConfigSourceContentTagSelect</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">text</item>
<item name="label" translate="true" xsi:type="string">Tags</item>
<item name="formElement" xsi:type="string">multiselect</item>
</item>
</argument>
</field>
TagSelect File :
public function toOptionArray()
{
return [
['value' => MyInterface::TAG_TAG1TEST, 'label' => MyInterface::TAG_TAG1TEST],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test'],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test']
];
}
Thanks!
magento2
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm testing to add a multiselect input in my BO form. But, the multiselect output is broken (however, the value selected is really selected in BO, and values are assigned). When I select a value, the multiselect selects all the values (all the values are highlighted ; just graphically).
My XML :
<field name="my_field">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MyCompanyMyModuleModelConfigSourceContentTagSelect</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">text</item>
<item name="label" translate="true" xsi:type="string">Tags</item>
<item name="formElement" xsi:type="string">multiselect</item>
</item>
</argument>
</field>
TagSelect File :
public function toOptionArray()
{
return [
['value' => MyInterface::TAG_TAG1TEST, 'label' => MyInterface::TAG_TAG1TEST],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test'],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test']
];
}
Thanks!
magento2
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm testing to add a multiselect input in my BO form. But, the multiselect output is broken (however, the value selected is really selected in BO, and values are assigned). When I select a value, the multiselect selects all the values (all the values are highlighted ; just graphically).
My XML :
<field name="my_field">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MyCompanyMyModuleModelConfigSourceContentTagSelect</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">text</item>
<item name="label" translate="true" xsi:type="string">Tags</item>
<item name="formElement" xsi:type="string">multiselect</item>
</item>
</argument>
</field>
TagSelect File :
public function toOptionArray()
{
return [
['value' => MyInterface::TAG_TAG1TEST, 'label' => MyInterface::TAG_TAG1TEST],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test'],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test']
];
}
Thanks!
magento2
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm testing to add a multiselect input in my BO form. But, the multiselect output is broken (however, the value selected is really selected in BO, and values are assigned). When I select a value, the multiselect selects all the values (all the values are highlighted ; just graphically).
My XML :
<field name="my_field">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MyCompanyMyModuleModelConfigSourceContentTagSelect</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">text</item>
<item name="label" translate="true" xsi:type="string">Tags</item>
<item name="formElement" xsi:type="string">multiselect</item>
</item>
</argument>
</field>
TagSelect File :
public function toOptionArray()
{
return [
['value' => MyInterface::TAG_TAG1TEST, 'label' => MyInterface::TAG_TAG1TEST],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test'],
['value' => MyInterface::TAG_TAG1TEST, 'label' => 'test']
];
}
Thanks!
magento2
magento2
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 42 secs ago
ThomsathThomsath
1
1
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thomsath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Thomsath is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263607%2fmagento-2-multiselect-broken%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thomsath is a new contributor. Be nice, and check out our Code of Conduct.
Thomsath is a new contributor. Be nice, and check out our Code of Conduct.
Thomsath is a new contributor. Be nice, and check out our Code of Conduct.
Thomsath is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263607%2fmagento-2-multiselect-broken%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown