Remove item with action buttons

Hi everyone. What is the best way to remove an item with action buttons?

So when I inquired about this they told me record deletion should be coming in April. My current work around is the following:

  1. Create a checkbox field, ā€œActiveā€
  2. Create an airtable automation that deletes any record where ā€œActiveā€ is unchecked
  3. Create an update record action button with a check mark field mapped to the ā€œActiveā€ field. Label the action button something like ā€œdelete recordā€ or ā€œremoveā€

When users utilize this action button and unchecks the checkbox in the update record form, the automation then proceeds to delete the ā€œinactiveā€ record.

This is a rough workaround, but gets the job done until a cleaner action button experience is released (hopefully soon :slight_smile: )

2 Likes

Hi Ryan. Thanks for the workaround. Sounds like it should work.

You never know how long it will take Softr to release their ā€˜plannedā€™ or even ā€˜in-progressā€™ features.

When you close out the update button modal after checking and updating, is the record in question removed from the list block immediately? In other words does it automatically refresh without the record that was checked?

I was told by chat support that I would have to update (reconfigure) to the latest block version for this to happen.

Yeah youā€™ll need to update your block if itā€™s a pre-action button block. Regarding your first question, about the auto refresh, I donā€™t know off the top of my head. Iā€™ll have to check next time Iā€™m at my computer. My assumption is that there will probably be a slight delay as the record updates and the airtable automation triggers. Something as simple as filtering and unfiltering the list block can trigger a quick update without having to refresh the entire page though.

@RyanRad and @Ben, we are also working on Delete Record Action will be out in 1-2 weeks.

1 Like

Woot! Canā€™t wait. Will greatly improve user experience.

Thanks for the update Artur. Before I replace dozens of expired dynamic blocks, my current configuration simply moves a record to a ā€˜removed records viewā€™ in Airtable when the user checks a checkbox in the Softr update modal. Will the upcoming ā€˜deleteā€™ feature delete records in Airtable or have the option to move them to another view (one that is not configured as the list block default view)?

Right. As I mentioned to Artur earlier, I want to exclude the record by moving it to a view other than the default view configured on a Softr list block, rather then trigger an automation to delete it from Airtable.

That sounds like it would actually work very well. Just have two different airtable views each filtered by your checkbox being ā€œcheckedā€ or ā€œuncheckedā€ and set your Softr block to only show items in your ā€œuncheckedā€ view or vice versa depending on your needs.

1 Like

Hi Ryan. I am finding that even with the new version of dynamic blocks, removing a record is not auto-refreshed immediately in some cases. For instance, when you remove a record from a list details block, the list block it is mapped to does not reflect the removal.