I try it but not working. everyone can help me plz! enter image description here


If you are using magento2.3.1 need to change your filed component code in xml file like below

           <field name="sort_order" formElement="input">
                <argument name="data" xsi:type="array">
                    <item name="config" xsi:type="array">
                        <item name="source" xsi:type="string">page</item>
                        <rule name="required-entry" xsi:type="boolean">true</rule>
                    <label translate="true">Sort Order</label>
                        <link name="disabled">${ $.provider}:data.do_we_hide_it</link>
  • your dataProvider code will remain same... just change your filed code like above – Rutvee Sojitra May 24 '19 at 4:30
  • Thank you very much <3 – NewBie May 24 '19 at 4:57
  • Do you know hidden fieldset ? – NewBie May 24 '19 at 6:10
  • @NewBie means? what is your requirement? – Rutvee Sojitra May 24 '19 at 6:12
  • 1
    I want hide tab in form ui components. – NewBie May 24 '19 at 6:14

You can override getMeta() function in your DataProvider class

public function getMeta()
        $meta = parent::getMeta();
        $id = $this->request->getParam('entity_id');

            $meta['fieldset_name']['arguments']['data']['config']['visible'] = 1;
            $meta['fieldset_name']['arguments']['data']['config']['visible'] = 0;

        return $meta;

This worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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