I want to hide OR remove category form after a verification

Category form - Magento 2

So, I succeed to hide it by creating category_form.xml on view\adminhtml\ui_component

<fieldset name="general" sortOrder="5">
    <argument name="data" xsi:type="array">
       <item name="config" xsi:type="array">
          <item name="visible" xsi:type="boolean">false</item>

but I want to add a verification if it's correct I need to hide the form if not, no change should occur.

is there any solution?

Your Answer

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

Browse other questions tagged or ask your own question.