The Airtable Community will undergo scheduled maintenance on September 17 from 10:00 PM PST to 11:15 PM PST. During this period, you may experience temporary disruptions. We apologize for any inconvenience and appreciate your understanding.
Jun 19, 2020 09:56 AM
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?
Jun 19, 2020 10:00 AM
No. For that, you need to build a Custom Block.
Jun 19, 2020 01:52 PM
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?
Jun 19, 2020 02:27 PM
Thank you @kuovonne,
Your conclusions are the same as mine in front of this use-case that I had just thought about recently!
olπ