You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a field that is described in view as <%= f.SelectTag("Country", {class: "selectpicker", multiple: true, data-live-search: true, options: countries, required: true})
In model I have a field Country slices.String `json:"country" db:"country"
In action this model is provided to the template
If there is only one country in slices.String array, it is being displayed properly in the edit form, but if I have more than one country selected, no selected countries are displayed at all.
if I provide selected countries manually, I get all of the selected countries
I have a field that is described in view as
<%= f.SelectTag("Country", {class: "selectpicker", multiple: true, data-live-search: true, options: countries, required: true})
In model I have a field
Country slices.String `json:"country" db:"country"
In action this model is provided to the template
If there is only one country in slices.String array, it is being displayed properly in the edit form, but if I have more than one country selected, no selected countries are displayed at all.
if I provide selected countries manually, I get all of the selected countries
The text was updated successfully, but these errors were encountered: