I want to change the choice field from drop down to MultiChoice. How to Update choice field SchemaXml using powershell. Also how to get SchemaXml property. enter image description here

  • Are you simply trying to change the Choice field from Drop-Down to Checkboxes via PowerShell? Otherwise, what are you trying to do via SchemaXml? – Erik Perez Dec 9 '15 at 6:33

I'll assume what you are trying to do is change a Choice field's type using PowerShell. In that case you can do something like this:

$web = Get-SPWeb -Identity http://your.site.url.here
$list = $web.Lists["YourList"]
$field = $list.Fields["YourField"]
$field.Type = [Microsoft.SharePoint.SPFieldType]::MultiChoice

The SharePoint SPFieldType Enumeration information is here: https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spfieldtype.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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