title: Custom Edit form for Multiple Content Type in a SharePoint 2013 list
body: <p>In one of my recent project I am currently stuck in a situation where I have to create multiple custom edit forms for each content type that the SharePoint list has.</p>
  
  <p>Example, I have a SharePoint document library with 10 content types. One of them a Base content type inheriting from 'Document' and the others inheriting from the 'Base'.</p>
  
  <p>Now, documents will be uploaded to the site using BizTalk and users will only edit the document, selecting appropriate content type, fill up required fields and save. Now, since the documents will be uploaded through BizTalk, we have decided to remove the 'Required' field settings for all columns and only in the custom edit form we will have to validate them.</p>
  
  <p>So far, I was able to create custom edit form and hook up to a list definition. I think, I'll also will be able to create multiple edit forms and hook up with each of the content types in the content types 'Element.xml' file. But, how I can show the 'Content Type' choice field at the top and redirect to appropriate edit form in each page?</p>
  
  <p>I was thinking of creating a select box, loading it with all the available content types in the list and on selected item change event I can redirect to appropriate edit page. But, is this a correct way to do?</p>
  
  <p>With my solution in mind, I have to create 10 custom edit forms and I have to set up all the fields by hand, which is very tedious. Is there any simple way of doing it?</p>
  
  <p>Please note, I have to add custom client side validation also to the edit form based on the content type chosen.</p>
  
  <p>Also, the requirement is to do most of the things in client side. i.e. loading of items, validation, saving to SharePoint etc. I am using Knockout + jQuery for this task.</p>
  
  <p>Thanks in advance.</p>
  
  <p>UBK</p>