How to convert a Choice field to MultiChoice
I need to convert a Choice field to a MultiChoice field. The way I have accomplished this so far is as follows:
$field = Get-PnpField FieldName
$field.TypeAsString = "MultiChoice"
$field.UpdateAndPushChanges($true)
Invoke-PnPQuery
In the GUI, the field is now a MultiChoice field. But when I try to access this field in PowerShell I get the following error: Get-PnPField : Field or property "EditFormat" does not exist.
I cannot make any other updates to the field in PowerShell. I have to use the SharePoint UI to change it back to a RadioButton or Dropdown. Then it will work once again. I tried clearing that property, but it doesn't let me set it to anything by RadioButton or Dropdown.
Is there another way that I should be changing this field?
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
FYI - this appears to be fixed at least as of 3.18.2002.0.