Thursday, 10 March 2011

Howto use custom form for my custom content type

Today I needed to use custom form for New and Edit Action for a specified content type, here's how I've done that. As you can see, at the end I added XmlDocuments section and there I pointed to my form. The reason I have to done it that way is the fact, I needed to hide column "FileLeafRef" from user (it was done with javascript on my custom form).

Name="My name"
Description="My description"
Group="My Group"
<folder TargetName="_cts/Requests"/>
<fieldref ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" DisplayName="Numer zgłoszenia" ShowInNewForm="FALSE" ShowInEditForm="FALSE" />
<fieldref ID="{8553196d-ec8d-4564-9861-3dbe931050c8}" Name="FileLeafRef" Required="FALSE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" ReadOnly="TRUE" />
<xmldocument NamespaceURI="">
<formurls xmlns="">

No comments:

Post a Comment