Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Sending Javascript Array via API to Multiple-select field

431 0
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I’m trying to send a Javascript array with multiple values to my Airtable (multi-select field).

Array example:

var colors = [ "#4BC2A4-a", "#4BC2A4-b", "#4BC2A4-c", "#4BC2A4-d", "#4BC2A4-e", "#4BC2A4-f", "#4BC2A4-g", "#4BC2A4-h", "#f4a261-j", "#f4a261-10-k", "#EF616C-11-l", "#EF616C-m", "#EF616C-n", "#EF616C-o", "#f4a261-p", "#f4a261-q", "#f4a261-r", "#f4a261-s", "#EF616C-t", "#EF616C-u", "#EF616C-v", "#EF616C-w", "#f4a261-x" ];

But Airtable creates only one unique item with all the values inside:
7b88f6b902d38e7ed089d3d12dcc492f78052039.png

How it should be:
6637aef7193879be92dc8b2d2dd82d507795c560.png

How I should format the array to make sure Airtable will separate the items by comma ?

Thanks.

0 Replies 0