Have you ever created an InfoPath Form Template and published fields from the template to SharePoint Columns in your content type?
I’m sure you have, otherwise you probably wouldn’t be reading this.
Essentially, the columns will be grayed out in the list settings:
And if you try to set the value of the field using SharePoint Designer, you won’t see it in your list of available columns:
However, luckily we have PowerShell – and we can simply edit the ReadOnlyField value from $true to $false – thus allowing us to edit this field. Here’s how!
$web = Get-SPWeb http://weburl $list = $web.Lists["List Name"] $field = $list.Fields["Field Name"] $field.ReadOnlyField = $false $field.Update() $list.Update() $web.Update() $web.Dispose()
After doing so, the column is not only editable in the browser – we can choose it in Designer:
You must be logged in to post a comment.