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'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?

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

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.

share|improve this answer
add comment

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

share|improve this answer
    
The problem is, I'm developing a redistributable package in Visual Studio, and the form is coded from scratch. I can't even see the ListFormWebPart, it gets added to the WebPartZone behind the scenes. –  Mihai Apr 13 '10 at 17:21
    
Marc, you could add some meat to those bones as this is a very commonly held opinion. –  Charles Lee Apr 28 '10 at 8:00
    
Yes, it is, and it's a falacious opinion. I delete the default LFWP every single time and I have had zero issues. –  Marc D Anderson Apr 28 '10 at 12:27
add comment

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.