I have a managed meta data field. I have this in the page layout

<SharePointWebControls:CheckBoxChoiceField ID="MultipleLookupField8" FieldName="MM_x0020_Department" runat="server"/>

But I get the error

Unable to cast object of type 'Microsoft.SharePoint.Taxonomy.TaxonomyField' to type 'Microsoft.SharePoint.SPFieldMultiChoice'. 

How can I display the managed metadata as a multichoice picker?


1 Answer 1


Register taxonomy namespace

<%@ Register Tagprefix="Taxonomy" Namespace="Microsoft.SharePoint.Taxonomy" Assembly="Microsoft.SharePoint.Taxonomy, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>   

And than use the following taxonomy control:

 <Taxonomy:TaxonomyFieldControl FieldName="MM_x0020_Department" InputFieldLabel="MM Department" runat="server"></Taxonomy:TaxonomyFieldControl>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.