Hello,
What is the best way to achieve this?
I’ve been trying to implement this with @distantnative’s Multi Select (https://github.com/distantnative/multiselect) by making an “authors-api” template to collect all users and return them as a JSON object for the field to work with but I’m stuck while trying to build the JSON.
The $site->users() variable returns a collection with only linebreaks such as:
admin<br />user1<br />user2