c# - MOSS 2007; Added custom fields not showing up in NewForm, EditForm, DispForm -
I have a menu list that is registered in every list.
If enabled, this action, 4 creates custom fields. Field creation works in every list.
The problem is that on lists, which are created through our site template, these 4 fields are not displayed on any form (disfirm, newform, edit). In each other list, fields are displayed normally.
This is my code to add a field to the list (on the field example):
if (! List.Fields .ContainsField ("RemindTo")) {list. Fields.Add ("RemindTo", SPFieldType.Text, Incorrect); SPFieldText text = (SPFieldText) list.Fields ["RemindTo"]; Text.Description = "Snooze to the email address, leave blank for default value. (Default author's email address)"; Text.ShowInDisplayForm = True; Text.ShowInEditForm = True; Text.ShowInNewForm = True; Text.ShowInViewForms = True; Text.Update ();
"text">
To show custom areas, you must manually Your field type XML and ascx file should be copied to the CONTROLTEMPLATES directory on the server. Also restart your IIS worker process.
For more information on how to create custom fields, please read this article
Comments
Post a Comment