Help

Returning multiple select field as comma seperated or div seperated elements

Topic Labels: API
788 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Ciaran_Hanrahan
4 - Data Explorer
4 - Data Explorer

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