Friday, July 27, 2007

MOSS DropDownChoiceField error

posted by Lars Hundebøl # 02:16 PM

When using the DropDownChoiceField of Microsoft Office SharePoint Server, always make sure that the field it references is required = true (see description below). If that is not the case, the dropdown control will not be rendered on the user interface.

<SharePointWebControls:DropDownChoiceField 
   FieldName="NewsCategory"
   runat="server"
   id="DropDownChoiceField1" />

<Field ID="{EEF88D9A-503D-40E4-AAA5-85117608B4B4}" 
   Name="NewsCategory" StaticName="NewsCategory" 
   Type="Choice" 
   Format="Dropdown" 
   Required="TRUE"
   ... />

Leave a comment

Your name

Your e-mail (will not be displayed)†

†Your e-mail will never be displayed and only used on the site to display your gravatar (if you got one), and as a means to potentially get back to you, if I have any feedback or questions regarding your comment.

all posts