Make non editable field in list using PowerShell in SharePoint 2010

InfoPath alternatives for form designing SharePoint

 In this post, we will discuss how we can make the noneditable field in the list using PowerShell in SharePoint 2010.

Also, you can check out:
Follow the below steps:
1. First, we create a list and add the column Name as a text with calculate the value. See in fig
Make non editable field in list using PowerShell in SharePoint 2010
Make non editable field in a list using PowerShell in SharePoint 2010
2. Now i want to this Name Column non editable. So we use power-shell script for this.
3. Run the following script
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
#Getting the Web
$web = Get-SPWeb “http://test:7070/”
#Getting the List
$List = $Web.Lists[“TesetReadOnly”]
#Getting the Field
$Field = $List.Fields[“Name”]
#Setting the field to Read only
$Field.ReadOnlyField = $true
$Field.Update()
4. Now you see the Name column is non editable (not showing in your form new/edit/display) that’s value take calculated or default. See in fig
Make non editable field in list using PowerShell in SharePoint 2013
Make non editable field in a list using PowerShell in SharePoint 2013
5. After Saving the item Name field value take as a calculated. See in fig
Make non editable field in list using PowerShell in SharePoint 2016
Make non editable field in a list using PowerShell in SharePoint 2016

You May Also like the Following SharePoint Online Tutorials:

About Navneet Singh

I am Navneet Singh, Working at C3it software solutions pvt. ltd. in Pune. My core skills are SharePoint 2013, Office 365, SharePoint 2010, SharePoint Designer, SharePoint Designer Workflow, Nintex Workflow, Infopath, Webpart, CSOM/SSOM, Power-shell, C#, ASP.NET and SQL Server.

View all posts by Navneet Singh →

Leave a Reply