Skip to main content

Update (June 25, 2020): The button field is now available for all users — read more in our launch blog post: https://blog.airtable.com/now-available-button-field




👋 Hey all — I’d like to announce the public beta of button field, a new field type that allows you to create buttons that trigger customizable actions. These actions include:



  • Opening a link based on a URL formula

  • Opening a specific record in page designer

  • Opening an embed in the URL preview block

  • Sending emails with SendGrid



Perhaps most relevant to this community — you can use this new field type to run scripts directly from grid view, kanban view, gallery view, and expanded records. This will make scripts more readily accessible to end users and seamlessly integrated with their existing workflows. You can also customize your buttons with helpful labels that describe what your scripts do.



When a script is run from a button, the first input.recordAsync call in the script will use the record the button was clicked from. As an example:


// Change these to match your base.
let table = base.getTable('Table name');
let field = table.getField('Field name');

// When run from a button field, the script skips the prompt
// and automatically uses the button's record.
let record = await input.recordAsync('Choose a record', table);

let cellValue = record.getCellValue(field);
output.markdown(`# You have selected ${value}.`);

Hi! This is a great feature!


¿Why is the button disabled when the view is shared, either by link or embeded?


Buttons work in shared views, but it depends on the button mode you’ve selected. If the button simply opens a URL, it works fine. However, if you have the button set to run a script or interact with a block, it’s probably not going to work.


Hello everyone,


I’d like to use a button triggering a script in a shared view. It seems that it isn’t possible, probably for security / session reasons.


So what would be the easiest way to achieve the same behaviour? (having a button in a shared view that triggers a script) 🤔


I guess API allows that but it means that I have to design the page, host it, populate it and call the API which is way more work :grinning_face_with_sweat:


Hello everyone,


I’d like to use a button triggering a script in a shared view. It seems that it isn’t possible, probably for security / session reasons.


So what would be the easiest way to achieve the same behaviour? (having a button in a shared view that triggers a script) 🤔


I guess API allows that but it means that I have to design the page, host it, populate it and call the API which is way more work :grinning_face_with_sweat:


One workaround is to have the button launch a form that is profiled with info for the target record. Then the user submits the form, which creates a new record. Then have an automation run the script based on the info in the form.


Hello kuovonne,


Thanks for your reply!


This is the way I started doing things, but sadly it makes the UX very clanky… I hope we’ll be able to do that someday!


Heya @Stephen_Suen - are submissions still being reviewed for the Button Field feedback? If so, I’ve provided some recent feedback :grinning_face_with_big_eyes: - or otherwise, it might be an idea to disable new submissions.


Reply