Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am customizing the newform.aspx, and now when I try to add another text-box SharePoint field and try to change the type to form field, the form field option don't appear in the drop down box. I think I accidentally overridden or deleted a few tags. How can I restore the newform.aspx to its earlier version?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

This link has step-by-step instructions to restore your newform.aspx. Open the broken form and another working form in SP Designer, remove the ListFormWebPart from the page, then copy the ListFormWebPart from the unbroken page. You also have to update the List GUIDs to make sure the web part is pointing to the correct list.

http://bborole.blogspot.com/2010/08/recover-broken-sharepoint-list-forms.html

As an aside, in future you could create a new form (or copy newform.aspx) and then use SP designer to point the list to the new form. This would allow you to recover more easily.

http://stackoverflow.com/questions/1614767/restore-newform-aspx-file

share|improve this answer

The best options is as follows:

  1. Simply delete the bad ListFormWebPart form page if it still exists
  2. Make a copy of one of your good ListFormWebPart form page
  3. Rename the copied ListFormWebPart to whatever the name of the bad one was

This is the best options because it basically restores you back to the factory default OOB ListFormWebPart instead of creating DataFormWebParts, which have their pros and cons.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.