Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Button to run a script that deletes the record

Topic Labels: Scripting extentions
959 7
cancel
Showing results for 
Search instead for 
Did you mean: 

I need read-only users to be able to click a button and delete a record. I am just about to start learning JS (how many people are saying that now Airtable Scripting exists!) but currently have no coding knowledge!

Can anyone help with a script I can run on a button being clicked to delete the relevant record? Thanks in advance!

7 Replies 7

Writing that script would be easy except I’m pretty sure read-only users wouldn’t be able to use it. Either a user can edit/delete a record by any means or they can’t.

I was worried about that. Ok, will just have to wait till our Stacker solution is all setup. Never mind!

Thanks for your response Kamille.

Any chance you could provide me the script so I can test to confirm?

You could have a button that opens an Airtable form prefilled with the record id of the record to be deleted. The user submits the form, then have an automation script trigger do the actual deletion.

That’s definitely one way to do it. Very, very clever.

Thanks Kuovonne. It’s a great workaround. Unfortunately the impact on user experience outweighs the functionality - I think we’ll have to get an initial front end setup via Stacker to cater for our need to accomodate read-only users updating and deleting records.

Thanks for your help