Question

I'm pretty new to SP, but I had to bite the bullet and create a custom new form for a custom list schema. I mirrored the field structure with textboxes and such, added some custom javascript, validators and business logic, but my problem is that Sharepoint keeps injecting the old ListFormWebPart into my page. I can set the WebPartZone's Visible property to false and thus hide it, but I'd like to get rid of it altogether. Not to mention that, since its fields are all empty, my Page.Valid property will always return false.

Is there some code snippet that will do this job for me?

Was it helpful?

Solution

I'm surprised how your page is working after deleting LFWP, because if I do it in the MOSS 2007 there will be exception. And the solution is not simple.

You just need to leave LFWP. Paste new custom list near it. Don't know how to do it in Studio, in Office Designer you can do it as mantioned there. Just don't delete LFWP, you'd hide it, in Designer simply press right button and choose web-part property, then Hide in layout section.

Think you can do similar in VStudio.

OTHER TIPS

Contrary to popular belief (another SharePoint Myth), you can just delete the LFWP from the page entirely. You can do this in SharePoint Designer.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top