I have a list block and I want it to auto-refresh when someone presses the delete button for the item. I see lots of explanations of using custom code snippets with something called event listeners in forums. The challenge is that I don’t write code which is why I’m here using Softr. So those forum entries aren’t anything I can follow. This seems like a feature that ought to be native.
Can someone explain, for a no-coder audience, how to insert custom code into Softr so a list is updated after a button is clicked?
Some nuances:
I’d prefer to not have the whole page refreshed.
I don’t think it makes sense to refresh every 10 seconds. Only after the delete button has been pressed.
Some forums suggest I need to reference the blockID. How do I find that? I can’t find it natively, in documentation, or by parsing the HTML in the browser.
This should become a native feature when workflows are released.
In the meantime, I can do it for you, you just need to give me the blockID of the block where the delete action occurs and the block(s) you want to automatically refresh after a deletion
That being said, if you want the block where the delete action occurs to be auto refreshed – and only this block, then it’s native and automatic, see post below
Okay, I got my wires crossed a bit on how I posted the original question. Let me clear this up.
@artur You are right, the native delete works just fine. My only ask is the ability to disable the confirmation “Are you sure you want to delete?” The UX in my case would be better if it just deleted.
@matthieu_chateau I still need help having the block (list1) update BUT I need this done when a user hits an “Add” button in another block on the page (grid1) which triggers an workflow in Make.com to add a record to the junction table in Airtable which the List1 block represents.