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

Getting the currently selected record

Topic Labels: Scripting extentions
2628 3
Showing results for 
Search instead for 
Did you mean: 

Can a scripting block learn what the currently selected records are and get updates when that selection changes?

I’d like to write a script that knows when the user has only a single record selected in the visible table and then uses some fields in that record to do something fancy. Any time the user clicks on a another record, the block should be notified, look up the new field values, and redo the fancy action.

Is it possible to get such notices in a scripting block?

3 Replies 3

No. For that, you need to build a Custom Block.

Welcome to the Airtable community.

You can use the button beta to launch a script with for the current record. See the instructions about halfway down Stephen’s post in the announcement post.

It’s not exactly the same workflow you asked for, but will hopefully provide similar enough functionality.

If this answers your question, please mark this post as the solution. Otherwise, could you please give a bit more details and a screen capture?

Thank you @kuovonne,

Your conclusions are the same as mine in front of this use-case that I had just thought about recently!