Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

Returning multiple select field as comma seperated or div seperated elements

Topic Labels: API
639 0
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m using the Airtable api to build a website. I’m returning values from a multiple select field. In this case the field is ‘Activities available’. I can output them on the website no problem, but I can only return them as a string and can’t seem to figure out how to ideally add html around each value, or at least comma seperate them.

I have this <p><span className="text-muted">{record.fields['Activities available']}</span></p> returning <span class="text-muted">NightlifeFoodArchitecture</span> in the browser.
I’m using Create React App to build this and I’m quite new and limited in Javascript. Any help would be appreciated.

Thanks,
Ciarán

0 Replies 0