I faced similar problem in last month. I was spend around 1 day to re-correct that page, but no output. Luckily there's an easy way to fix this, its take hardly 5 min.
Here are the things you'll need to fix your forms:
- With the broken form page already open in SharePoint Designer, open any form that is NOT broken. This can be any form from from any list as long as it works.
- Remove ListFormWebpart from broken page "<WebPartPages:ListFormWebPart ... to</WebPartPages:ListFormWebPart>"
- Copy ListFormWebPart from unbroken list page open in previous and paste it into the broken form.
- Paste the List GUID in <ListName ... between the { and }.
- Generate a form GUID from Visual Studio or click on http://www.somacon.com/p113.php to generate GUID and paste it into the ... __WebPartID="{[Form GUID]}" > and the <ID>g_[Form GUID]</ID>.
- Save the page and refresh the list in your browser. The page should now be fixed.
I've found an easier solution.
ReplyDelete1. Navigate to the list in SP Designer.
2. In the "Forms" Group click on "New" on the right of the groups title menu.
3. Give it a name and select the type of form you want to re-create. (New, Edit or Display)
4. Check the "Set as default form for the selected type" box
5. press OK
Plus 1 for anon!!!!
DeletePlus 2 for anon, thank you for being awesome!
DeleteThis creates a custom new or edit form, not the original type which adapts the fields automatically as you add / remove / reorder.
DeleteThis is an awesome post. It's great to know the ins and outs out XSLT, but here's an even easier way...
ReplyDeleteSimply delete the bad form and make a copy of one of your good forms and name it whatever the bad form was.