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:
- Create a checkbox field, āActiveā
- Create an airtable automation that deletes any record where āActiveā is unchecked
- 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 )
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.
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.
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.