Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Choice field values were not displayed when created from Visual Studio

$
0
0


hi,

 i was trying to create a site coumns of choice field from vs 2012  as follows:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
  <Field
       ID="{93533ea6-c28e-4880-8356-44aa17919a95}"
       Name="BIF_ACCESS_RIGHTS"
       DisplayName="BIF_ACCESS_RIGHTS"
       Type="Choice"
       Required="TRUE"
       Group="BIF SITE COLUMNS">
    <CHOICES>
      <CHOICE>Contribute</CHOICE>
      <CHOICE>Read</CHOICE>
      <CHOICE>View Only</CHOICE>
      <CHOICE>Full Control</CHOICE>
      <CHOICE>Edit</CHOICE>
    </CHOICES>
  </Field>
</Elements>

and after this i created a  list element  from the project templates of vs 2012 and deployed onto sp site with  scope ="Web"

when ia ctivated the feature , sp list was  created but , i am  able to see the  choice filed's values like mentioned above:

contribute,read, etc.

i am stuck with why the field values were not displayed,. do i need to  add any extra line of code for getting these default values of my choice field ?

help is appreciated!

 


Viewing all articles
Browse latest Browse all 11571

Trending Articles