I'm having trouble correctly setting up a multiselect so that I can edit the data in my app. More specifically, I'm creating a form so that you can edit the details of a Client, including their favorite foods. I want to have a multiselect in that form where you can see the list of checked favorite foods across a list of allowable foods (as determined by one of the fields in the Food model).
For my data model, I have a one-to-many relation between "Clients" (one, from the Client model) and "Favorite Foods" (many, from the Food model).
The problem I'm having is that the options field for a multiselect ends up being a List<String> (@model.Food.fields.Name.possibleValues). However, I can't figure out what I need to put in the values field. My inclination is to want to be able to put @datasource.item.FavoriteFoods but I can't end up choosing that, presumably because it's List<Food record> and not a List<String> result. (That assumption could be wrong, I don't know why I can't select that.)
Anyone know how you're supposed to actually do this? I'm more sure my options selection is the right way to put the list of options, so I think I just don't know what's normal to put in the values section.

