Aug 26, 2022 12:24 PM
I have a button field that runs a script, that calls an external API, and then updates a field in the record. Is there anyway to stop the extension dashboard containing the script from opening (even partially) when the script is run?
I really don’t need my users wondering what’s going on (or poking around for that matter). :slightly_smiling_face:
Thanks!
Solved! Go to Solution.
Aug 26, 2022 12:45 PM
Unfortunately, no there is no way to stop it from happening. At least I don’t think this has been changed yet.
Aug 26, 2022 12:45 PM
Unfortunately, no there is no way to stop it from happening. At least I don’t think this has been changed yet.
Aug 26, 2022 01:48 PM
There currently is no way to hide the extension dashboard when an extension script runs. However, a common workaround is to run the script as an automation script. Trigger the script using an editable field such as a checkbox or a single select. I usually also have the automation script reset the editable field.
An added benefit of this method is that you can also restrict editing permissions for fields that only the automation script should be able to edit.
Aug 26, 2022 01:51 PM
Yes, there is. You just need to go around the barn twice.
The button will now silently perform the script.
UPDATE: Per @Justin_Barrett, unlike Coda, buttons in Airtable cannot effectuate a field change in a record without running a script, so I think instead of a button, maybe use a single-select field in step #1? You could even use a checkbox as a button.
Aug 26, 2022 04:14 PM
Buttons in grid views—which is what I believe the OP is asking about—cannot directly modify field values. Buttons in interfaces recently have been upgraded to allow data changes to specific fields, and they can even trigger automations, but they cannot currently trigger scripts in Scripting extensions.
Aug 26, 2022 04:34 PM
Ha! Crap! I was developing in Coda today and lost my context.