Help

Re: New beta: button field

4472 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Stephen_Suen
Community Manager
Community Manager

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

Button fields in grid view

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.

Button field settings_ label, style, action, and more

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}.`);
30 Replies 30

@Jeremy_Oglesby and @Kasra, I would also like to see scripts running in the background! I’m trying to migrate scripts from a google sheet where clicking an icon on the sheet updates a cell value. We use this to create “tallies” for our team in how we are contacted for a request. The buttons are Emails, Phone, Ticket, etc, and they tally for that user into a spreadsheet. We support online Courses at a private university and the data from this simple script has been very valuable. We would love to implement it into AirTable using these buttons, but so far I’m not sure it will work unless the script runs in the background.

@Kasra - One very specific example I have for you:

My wife and I homeschool our children, and we use Airtable to organize our work and put together task lists for our children of the work that needs to be completed (their self-work).

Currently, we just log in to Airtable with our own accounts and have our children work with a filtered view to access links we’ve provided, download PDF’s, and check off the work they complete with a checkbox field. We don’t really want to pay for them as “Pro” collaborators, because this is the only thing we have them using Airtable for right now.

It would be great if I could just provide a shared view for them to work off of - they could still access links and download PDF’s they need, and then it would be nice if I could provide a button they could click that would trigger a script to 1) check the checkbox field to mark the assignment as done, and 2) depending on if the assignment is marked as needing to be uploaded to our schooling system, create a task for me in a different table to upload the assignment.

This would allow us to give our children the ability to interact with our base in only the very specific way we want them to, without risking our data or the structure of our base by opening it up to them.

In other words, I want to use the button field to circumvent your subscription structure :laughing: (this is only partially true… there is a very real weakness in Airtable’s structure when it comes to user permissions and allowing only very restricted interaction - a weakness that is being capitalized on by services such as Stacker)

RoW
5 - Automation Enthusiast
5 - Automation Enthusiast

I would like to be able to fill blank fields of one or a group of fields of a form instead of writing again and again the default value

Mark_Miller
5 - Automation Enthusiast
5 - Automation Enthusiast

Great addition! Can’t wait to use it to run scripts from grid view!

Chuck_F
5 - Automation Enthusiast
5 - Automation Enthusiast

This is going to make my life much easier. This is very intuitive for my end users!

Hari_Balasubram
6 - Interface Innovator
6 - Interface Innovator

Thanks for this.
I used this and it is very convenient.
Please see helpgap.com.
It is a simple implementation .
With the Button field it was tough to get these things done easily.
Thanks.

Hey Jeremy,

Did you find a workaround for this checkbox issue? I’m trying to find a way for non-users to interact with my database which would then trigger a script in the background.

Hi @Morgan_Molidor – welcome to the community.

No, there’s no workaround that allows a non-collaborator to trigger a Scripting block. They can only be manually triggered by a collaborator in the base.

Based on the trajectory of Airtable’s recent features, I’m feeling hopeful that they are moving in the direction of deeper integrated automation, but for now Forms are still the only means for a non-collaborator to interact with your base (outside of third-party tools).

@Jeremy_Oglesby thanks! I am hopeful too.

Balint_Drahota
4 - Data Explorer
4 - Data Explorer

Hi, how can a button field be edited after the initial setup? Can’t find the way:
Screenshot 2020-07-21 at 10.54.54