Jan 05, 2018 01:17 PM
I am looking to have applicants for a project from around the world. When they apply using the Airtable form, I want them to choose their time zone from a drop down menu.
I can easily create a drop down menu in Airtable, but I would have to manually enter a list of cities and time zones.
Is there a faster way to create this?
Thanks,
Jan 06, 2018 12:50 PM
I don’t know of a way that’s native to Airtable. But if you have your list of timezones in an excel or spreadsheet file, you could create a new table in your base by pasting the contents of the list. Then you could use a linked field in the application table to select the desired timezone in the new table, just as if it were a single select field. And if the applicant knew what he or she were doing, they could start typing in a few characters (like “Eastern”) and Airtable dynamically filters on the text.
If you don’t have your list of timezones, good luck. Your question sent me in search of one and there’s a lot of complexity around it. See for example:
Provides world time zone database download and API access.
JB
Jan 08, 2018 07:41 AM
Try this:
Go to this page.
Mark and copy the list of timezone identifiers.
Create a new single-line text field (or a new table and, within it, a single-line text field) in your base; call it {TZ}
. (If you’re still in the process of creating your base, it’s easiest simply to define a new field in the table where your single select field will eventually belong. If you’re working on an existing base, it’s easiest to create the single select inside a new table and afterwards use this technique to move it to where it belongs.)
Select the cell containing the new text field in Row 1.
Press Ctrl-V
to paste the timezone list.
Airtable will ask if you want to add 330-some records to the base; say ‘yes.’
You now have 341 records, each containing a single timezone identifier within single quotes; the first 340 also have a comma appended. Scroll down to Row 341, select the text cell (‘Pacific/Wallis’), press Enter
, and add a comma to the end of the entry.
Create a new formula field called {Timezone}
.
LEFT(TZ,LEN(TZ)-1)
RIGHT(LEFT(TZ,LEN(TZ)-2),LEN(TZ)-3)
Right-click on {TZ}
and select 'Customize field type'
. Change the field type from 'Formula'
to 'Single select'
. (It’s probably best to de-select 'Colored options'
, as well.)
You are now the proud owner of a 341-item single-select field called {Timezone}
containing all Airtable-acceptable timezone identifiers in far less time that it took me to describe the process. Delete the now-unnecessary records and proceed with defining your base, or move the field to the appropriate table, delete your ‘scratch’ table, and carry on Airtabling.
Jan 16, 2018 10:28 AM
Brilliant! That worked like a charm.
Thank you for taking the time to help with this.
Jan 16, 2018 10:44 AM
Great! Sometimes I look back on what I’ve written and can’t believe anyone manages to follow it… :slightly_smiling_face:
Jan 16, 2018 11:21 AM
Your instructions worked well. The only glitch I ran into was you told me to name the field {TZ} with brackets and I followed that literally and named the field {TZ} with the brackets included.
So the formula failed the first tie as the formula was using TZ.
Once I renamed the field to TZ, then the formula worked.
Are you a programmer? Do you do Airtable and other consulting work?
Jan 16, 2018 11:35 AM
I’ve replied via PM here…