#Is it possible to create a data collection as an array of strings instead of an array of objects wit
15 messages · Page 1 of 1 (latest)
How about JSON? https://payloadcms.com/docs/fields/json
There may be a better way than JSON
But alternatively, you could hook into the field hooks
And either format the field, or save to a field that is formatted as you want
Is there a reason to not just use
interests.map(i => i.value);
in your frontend to receive an array of strings?
i agree with everything above, but one other note, we are planning to add hasMany: true to the text field at some point in the future as well, which will allow for an array of strings
but right now we don't support that
Hi @topaz iris any update on the development of this feature?
not yet, but it is supported on the number field and it could be a good PR to make that just follows along with what the number field supports
Any ETA on this change?