SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I built a custom new form for a page and in the schema file I did the following:

<Form Type="NewForm" Url="NewForm.aspx" WebPartZoneID="Main" />

So it looks for my custom form. It works fine for new clients I create, but ones already in the system still point to the standard new form.

<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /> 

So I've tried to create an upgrade rule to get the older ones to look at the custom form by doing this:

var list = web.TryGetList("Client Programs");
list.DefaultNewFormUrl = "NewForm.aspx";

But I have a feeling this won't do anything. Is there some way to point the old data to the new custom form through the site settings page, or what would I need to add/change in the upgrade rule to get this working?


I should also mention that in the properties for the form I have changed it to look in the hive for the form and made it an element file.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.