20.10.2010 Updated code to add some more features: Edit list properties: “Hidden”, “ShowUser”, “Ordered”, “Direction”. Field properties: ShowInDIP (document information panel) and cross site lookup functionality for a standard SharePoint lookup column. The article is updated and describes the changes.
This code enables you to edit the following using javascript/jQuery only
List properties:
- Hidden: Hide the list so that it does not appear on the Documents and Lists page, Quick Launch bar, Modify Site Content page, or Add Column page as an option for lookup fields.
- ShowUser: Specify that names of users are shown in “Created by” and “Modified by” fields.
- Ordered: Specify that the option to allow users to reorder items in the list is available on the Edit View page for the list.
- Direction: LTR if the reading order is left-to-right, RTL if it is right-to-left.
Field properties:
- Hidden: Specifies whether the field is displayed in the list.
- ReadOnly: Specifies whether values in the field can be modified.
- Required: Determines whether the field requires values.
- Show In NewForm: Specifies whether the field is displayed in the form that is used to create list items.
- Show In DispForm: Specifies whether the field is displayed in the form for displaying list items.
- Show In EditForm: Specifies whether the field is displayed in the form that is used to edit list items.
- Show In DIP: Specifies whether the field is displayed in the “Document Information Panel” in compatible Microsoft Office applications. Only available for document libraries.
- Show In List Settings: Specifies whether the field is displayed in the page for customizing list settings.
- Show In Version History: Specifies whether the field is displayed in the page for viewing list item versions.
- Show In View Forms: Specifies whether the field is displayed in pages that are used to view list data.
- Lookup column web and list association (cross site lookup): Change the web and list association for a lookup column – Note: If you do this, all existing elements in this column will be lost. The cross site option is only available for site collection administrators!
Images:
Disclaimer:
I have removed some list types and some column types, but be careful using this tool. Test this in a “test list” before you use it in your “production environment”. If you edit the wrong field, you could break the list. Use this tool at your own risk!
Create a WebPartPage, insert a CEWP, and paste the code.
You find the code here
Regards
Alexander

May 11, 2011 at 10:06 pm |
I created a test list.
It looks like it will let me pick a subsite.
But nothing has changed on my test list. Is there some other step I’m missing?
May 11, 2011 at 10:31 pm
Hi,
Look at this article: Convert a standard SharePoint lookup column to a full blown cross site lookup using javascript only
Alexander
July 29, 2011 at 1:17 pm |
It’s a brilliant bit of code. Unfortunately in SP 2010, you set a field to read only and display in editform, and it no longer appears in editform. Seems like an SP bug to me.
So all I could do was make a new edit form (which is detached sadly – won’t reflect future column changes) then edit the field settings in SharePoint Designer.
August 6, 2011 at 12:22 am
Hi,
This is the default behavior for a read only field. This tool adds nothing more then the ability to toggle the already existing (but hidden) attributes for the fields.
Look here for another approach
Alexander
September 20, 2011 at 4:06 pm |
I’m not sure that this resolves the problem, sometimes we need to see some fields in edit form, sometimes this is part of requirements
October 5, 2011 at 8:51 pm
Hi,
This solution either hides or shows the field. You should look at some other solutions in stead.
One example is found here
Alexander
December 9, 2011 at 5:06 pm |
[...] SharePoint Field properties, including lookup column list association, with client side code only http://sharepointjavascript.wordpress.com/2010/03/30/edit-sharepoint-field-properties-including-look… Share this:TwitterFacebookLike this:LikeBe the first to like this [...]
February 7, 2012 at 11:57 am |
Hi!
Thanks for script. But i can download it from https://bautz.homeserver.com/SharePointJavascript/Scripts/ChangeListAndFieldProperties/
It says timeout error for any browser.
How i can grab your code?
Thanks.
February 7, 2012 at 12:01 pm
I have updated the link. The redirect from my old server was down.
Alexander
March 22, 2012 at 6:01 pm |
Hi
i want to hide some columns in edit view.
Thanks
Shruti
March 23, 2012 at 11:39 pm
Hi,
This code will do that for you – are there any problems?
Alexander
May 17, 2012 at 11:16 pm |
This is freaking cool. Thanks for posting.