I have created custom modules with Magento 2.2.6 and there is dynamic rows added in custom module UI component form. Admin can add/delete dynamic row in new form. but admin can not delete dynamic rows in edit form

Is there any way to do this ? please suggest

1 Answer 1



<----- Your code------>
     $this->loadedData[$questions->getId()]['do_we_hide_it'] = true;
      $this->loadedData[$questions->getId()]['do_we_hide_it'] = false;

<----- Your code------>


<------ Your code -------->
    <argument name="data" xsi:type="array">
       <item name="config" xsi:type="array">
          <item name="dataType" xsi:type="string">text</item>
          <item name="label" xsi:type="string" translate="true">Action</item>
          <item name="disableForDefaultRecord" xsi:type="boolean">true</item>
          <item name="additionalClasses" xsi:type="string">action_delete_button</item>
          <link name="hide">${ $.provider}:data.do_we_hide_it</link>                       

<----------- Your code ------->

This code will hide delete action in edit form, but also work in add new form


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.