
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jun 08, 2020 05:26 PM
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
:wave: 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}.`);

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 21, 2020 07:56 AM
Welcome to the community, @Balint_Drahota! :grinning_face_with_big_eyes: Check your Airtable login. The only reason I can think of that would give you such a short list of options is if you’re not logged in as an editor.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 21, 2020 08:59 AM
OMG yeah, that was the case :grinning_face_with_big_eyes:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 06:30 PM
Hi! This is a great feature!
¿Why is the button disabled when the view is shared, either by link or embeded?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 06:44 PM
Hi Kasra, I’d hope the button could be enabled in shared view. Any workaround?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 06:47 PM
Hey @Hari_Balasubramanian! How did you enabled the button in the shared view?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 08:36 PM
Buttons are another field type now like Long Text , Date , Number etc . I think it has come out of Beta and you must be able to see it in the field types.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 10:19 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Oct 13, 2020 02:55 AM
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) :thinking:
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:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Oct 13, 2020 07:13 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Oct 13, 2020 07:50 AM
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!
