Skip to main content
Solved

Update record - set value for Multiple Select field

  • Jun 16, 2022 6:51 PM UTC
  • 4 replies
  • 103 views

CountryTable.updateRecordAsync(recordId, {
    "id": 123,
    "Country (dropdown)": { name: "USA" },
})

This is throwing an error,

Error: Field "xadlxpdzw" cannot accept the provided value.

Country (dropdown) is a Multiple Select Field.

Best answer by Ujval_Shah

Cool, then your JavaScript syntax is probably incorrect. Others will need to help you from here.


Figured out,

CountryTable.updateRecordAsync(recordId, {
    "id": 123,
    "Country (dropdown)": [{ name: "USA" }],
})
View original
This topic has been closed for replies.

4 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Jun 16, 2022 6:53 PM UTC

I don’t know JavaScript, so I don’t know if the formatting of your JavaScript is correct. However, does “USA” already exist in Airtable as one of the options in your multiple select field?


  • Author
  • Inspiring
  • Jun 16, 2022 6:54 PM UTC

I don’t know JavaScript, so I don’t know if the formatting of your JavaScript is correct. However, does “USA” already exist in Airtable as one of the options in your multiple select field?


Yes, that value exists in the Airtable as an option


ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Jun 16, 2022 6:56 PM UTC

Yes, that value exists in the Airtable as an option


Cool, then your JavaScript syntax is probably incorrect. Others will need to help you from here.


  • Author
  • Inspiring
  • Answer
  • Jun 16, 2022 6:59 PM UTC

Cool, then your JavaScript syntax is probably incorrect. Others will need to help you from here.


Figured out,

CountryTable.updateRecordAsync(recordId, {
    "id": 123,
    "Country (dropdown)": [{ name: "USA" }],
})