Notice: I am on a free plan and do not have access to any paid tools by Airtable or another company.
I am trying to export airtable data in a csv. The place I am importing to cannot recognize “drop down” menu options.
I need to extract about 100 dropdown menu options* and format them thusly in a “text” field
["value1", "value2"]
*When I mention options I am talking about all the options in the dropdown menu, not just the ones selected and displayed.
I don’t know if this is possible, but if anyone knows a workaround that would be awesome. It would save me the hassle of having to type them all out with that formatting.
Hi @Anxious
If you add the scripting app (this is available in the free plan) to the right side panel. Open it up from scratch and remove all of the default scripts. then add this script
let table = base.getTable("Table")
let multipleSelectField = table.getField('Dropdown');
for (let choice of multipleSelectField.options.choices){
output.markdown(`
${choice.name}
`)
}
Change the Table and Dropdown parts in my script to match the names of your table and dropdown. Then run it. It will output all the options in text.
Hi @Anxious
You should be able to take that into a text editing program to format it the way you want.
or you can try something like this
let table = base.getTable("Episodes")
let multipleSelectField = table.getField('Status');
let array = []
for (let choice of multipleSelectField.options.choices){
array.push(choice.name)
}
output.markdown(`${array}`)