Search code examples
sharepointmosswindows-sharepoint-servicessharepoint-2007

Hiding a SharePoint Custom Field Type in Edit and Create mode


I am trying to create a Custom Field Type in SharePoint.

This control has it's value set based on another field in the same list. Because of this requirement, this field should be displayed only in the Display Mode, and not in the Edit or Create mode.

How do I ensure this?

If I just code the ASCX control to not render a field, the field will show up like this in the Edit and Create mode.

alt text http://www.mannsoftware.com/blog/Lists/Photos/121308_0204_CrossSiteLo6.png


Solution

  • Setting the ShowInEditForm and ShowInNewForm properties solved this for me.