Data not deleting and modal not closing

I’m trying to delete db records from a “Delete” button within a modal and a Bootstrap 4 dynamic form. It’s an image gallery and I’m trying to delete a gallery and all the images included.

Using this tutorial that @ben made:
howto/started-a-tutorial-on-how-to-create-an-image-gallery/3744

Here’s the specific video:

https://youtu.be/KWlTz2rUdbU

So the page’s modal pops up when the “Delete Gallery” button is clicked but when I click the “Delete Gallery” inside the modal, nothing happens.

I tried fixing it with the issues described in this post:

Delete/Edit Record Actions Do Not Work in a Modal

but I must be doing something wrong because I still can’t get it to work.

Here’s what my app structure looks like:

And here is what the modal properties look like:

Here are my dynamic events:

Full disclosure . . . I’m not very good at this coding stuff (which is why I chose Wappler). I appreciate all of the advice, tutorials and helpful people I meet in this community.

Thank you again.

Edit: added @ben for credit.

Community Page
Last updated: