Forum Discussion
George91288
Apr 19, 2023Copper Contributor
Update "CanToggleHidden" Property - SPO
In SPO, I'm trying to delete a "Managed Metadata" column in a library but getting the below error in UI and also in PowerShell: Error: Cannot change Hidden attribute for this field On googlin...
- Apr 19, 2023
Hi!
So CanToggleHidden doesn't exist in SharePoint online.
try this :Make it hidden or Visible:
Set-PnPField -List $ListName -Identity $FieldName -Values @{Required=$False;Hidden=$False}
Delete Field:
Remove-PnPField -List $ListName -Identity $FieldName
Apr 19, 2023
Hi!
So CanToggleHidden doesn't exist in SharePoint online.
try this :
Make it hidden or Visible:
Set-PnPField -List $ListName -Identity $FieldName -Values @{Required=$False;Hidden=$False}
Delete Field:
Remove-PnPField -List $ListName -Identity $FieldName
- George91288Apr 20, 2023Copper Contributor
@NicholasKheirallah This didnt work. I am still getting the same error "Error: Cannot change Hidden attribute for this field" while trying to delete the column using Remove-PnPField
- Apr 20, 2023Do a Get-PnPField on that field and post the output. Sounds like it might have an different internal name?