I am working on the custom extension and I need delete button in the custom form at the backend. When I edit a record, there should be delete button above with other buttons like Back, Reset and Save and continue edit. Please see the screenshot to get more idea. Can someone guide me for it?
Magento2 – How to Add Delete Button in Custom Form in Backend
adminformmagento2
Best Answer
Add below code in
app\code\Vendor\ModuleName\Block\Adminhtml\Module\Edit.php
in_construct()
Below will be your delete action.