0
<field name="customer_group">
    <argument name="data" xsi:type="array">
        <item name="options" xsi:type="object">Magento\Customer\Model\ResourceModel\Group\Collection</item>
        <item name="config" xsi:type="array">
            <item name="sortOrder" xsi:type="number">50</item>
            <item name="dataType" xsi:type="string">text</item>
            <item name="label" translate="true" xsi:type="string">Customer Group</item>
            <item name="formElement" xsi:type="string">multiselect</item>
            <item name="source" xsi:type="string">popup</item>
            <item name="dataScope" xsi:type="string">customer_group</item>
            <item name="default" xsi:type="string">1</item>
            <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">false</item>
            </item>
        </item>
    </argument>
</field>

1 Answer 1

4

You can pass ids as below:

<item name="default" xsi:type="string">1,2,3</item>
1
  • can we pass this from Options source file? Commented Dec 13, 2018 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.