SharePoint create custom list forms with Visual Studio Part 1

In this post serie i would like to share my experience with custom list forms in SharePoint 2010 and 2013. Normally you start a visual studio solution with a list definition and a list instance. These posts will show you step by step to add a custom list form which will work fine even with code behind.

Part 1: Setting up a solution with a list definition, a list instance and deploy it.

Part 2: Creating a custom list form and connect it with the list definition.

Part 3: Necessary settings for custom listform in Visual Studio

Well, at first let’s ask ourselve why should we create a custom list form? In fact, SharePoint provides lots of features. But often you business process needs steps which are not covered by out-of-the-box functionality. Examples:

  • Cascading Dropdowns
  • Fetching Data from another source like Databases, CRM, different SharePoint lists
  • Send data to different sources (Databases, CRM, SAP, different SharePoint lists)
  • using Webservices inside your form
  • dependent display on user permissions

I guess you know some more reasons and because you’re still reading my post i am sure you have a reason why to develop a custom form.

In this part we cover the basics –  we setup our visual studio solution and add a list definition and a list instance.

Step 1: Add a list definition

I created an empty SharePoint Solution with a mapped folder to _layouts and a folder named lists. In this folder Lists i added a new item from type list definition and call it RequestRentalCar. I used basetype custom list.


Step 2: Additional add a list instance

I also have checked to create a list instance, which i renamed afterwords.


Step 3: Add some fields to list schema

I removed the content types and added some fields to the fields nodes. I also added those fields to the viewfields section.


Step 4: Deploy it and look at your list.

The results of listview


The results of display form


Ok, our list is deployed now. Lets go on with part 2.


The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Schneider
About Karsten Schneider 302 Articles
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.

1 Trackback / Pingback

  1. SharePoint create custom list forms with Visual Studio Part 2 | devzsharepoint

Leave a Reply

Your email address will not be published.