1

I have Added one custom entity in default Magento import. On delete behaviour action, need to display the delete confirmation popup with message (it will delete all record) on import button click. Can anyone please guide me in this.

1 Answer 1

0

Add this below code in your file and see it it works

<script>
require(['jquery', 'jquery/ui'], function($){ 
        jQuery('.action-delete').click(function(e)
    {
        if(confirm('Do you want to remove all records?'))
        {
            return true;
        }
        else
        {
            return false; 
        }

    });
 });
</script>

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.