New Item with custom column
I added a site column to a list and I want it to be displayed on all views and the edit form. All that is fine. Howeve when an item is created I want it to just have the default value without the user who creates it beign able to set a different value. So, I would like to have it removed from the new item form or else be read-only on that form. Any ideas?
July 1st, 2010 10:44pm

REFERENCE : MY PROJECT CODE:------ you can set the filed readonly and give it a defaulgt value in the element file for ur site column feature ( element file) <Field ID="{4F2F5AC1-B1E8-4ee3-88AF-65793D9B6CA2}" Name="ArticleDate" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ArticleDate" Group="$Resources:Feature,Site_Column_Group_Name;" Type="DateTime" Format="DateOnly" ReadOnly="TRUE" DisplayName="$Resources:Feature,Featured_Article_Date;" > <Default>[today]</Default> </Field> or you can do it in ur list content type feature like:- <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" Hidden="FALSE" ShowInNewForm="FALSE" ShowInEditForm="TRUE" ReadOnly="FALSE" /> ______________________________ REFERNCE:http://msdn.microsoft.com/en-us/library/aa543225.aspx::::---- <FieldRef Aggregation="sum" | "count" | "average" | "min" | "max" | "merge" | "plaintext" | "first" | "last" Customization="Text" DefaultValue="Text" Description="Text" DisplayName="Text" Format="Text" Filterable="TRUE" | "FALSE" FilterableNoRecurrence="TRUE" | "FALSE" FromBaseType="TRUE" | "FALSE" Hidden="TRUE" | "FALSE" | "orResource" ID="Text" Locked="TRUE" | "FALSE" Name="Text" Node="Text" NumLines="Integer" PIAttribute="Text" PITarget="Text" PrimaryPIAttribute="Text" PrimaryPITarge="Text" ReadOnly="TRUE" | "FALSE" ReadOnlyClient="TRUE" | "FALSE" Required="TRUE" | "FALSE" Sealed="TRUE" | "FALSE" ShowInDisplayForm="TRUE" | "FALSE" ShowInEditForm="TRUE" | "FALSE" ShowInFileDlg="TRUE" | "FALSE" ShowInListSettings="TRUE" | "FALSE" ShowInNewForm="TRUE" | "FALSE" Sortable="TRUE" | "FALSE"> </FieldRef>
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2010 9:12pm

Set the option to use Content Types in the list. Then you can set de filed (inside the contetn type) as hidden! Hope is helful!Juan Pablo. surpoint.blogspot.com geeks.ms/blogs/jpussacq @jpussacq HispaPoint: comunidad sharepoint de habla hispana
July 5th, 2010 5:50am

I don't want it to be hidden or read-only, just not displayed n the Add form. I want it to appear normally on the display and on the Edit form.
Free Windows Admin Tool Kit Click here and download it now
July 6th, 2010 5:45pm

... <FieldRef ... ShowInNewForm="TRUE" | "FALSE" ... </FieldRef> This may be on the right track. I am fairly new to SharePoint. Where do I need to go to set these settings? Thanks, Jacob
July 6th, 2010 5:50pm

The above reference url is about SP2010. I am using 2007. That may be why I can't seem to find a file with those types of settings.
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2010 2:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics