More in this section
Forums / Developing with Sitefinity / How to store Multiple values in one Metadata field in Sitefinity 3.7

How to store Multiple values in one Metadata field in Sitefinity 3.7

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Saroj Rout
    Saroj Rout avatar
    31 posts
    14 Apr 2011
    27 Feb 2012
    Link to this post
    Hi Team,

    i have developed a Project using Sitefinity 3.7. i have added some extra field to Generic Content Module.
    In that module  i have added a  ListBox control(for US State ) wholse SelectionMode="Multiple". i have added one meta field under
    <cmsEngine defaultProvider="Generic_Content">
    <add key="Generic_Content.State" valueType="ShortText" visible="True" searchable="True" sortable="False" defaultValue=""/>
    </ cmsEngine defaultProvider="Generic_Content"> 

    When i save the select multiple states from the listbox and click save it will saving the only one state not multiple selected states.
    Please help me how to solve this problem.

    Thanks in advance!

  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    18 Sep 2017
    29 Feb 2012
    Link to this post

     It seems the list box is not passing the data correctly. If you have the javascript of the control make sure the values are passed as comma separated list for each entry in the dropdown. Currently it seems to pass the value as a variable that is not taking all fields or an array of the fields.

    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered