Hey everyone! First of all, Merry Christmas 😊 — hope everyone got what they wished for under the tree.
Today I found a solution to a problem I’d spent almost a year on (not continuously, but I kept coming back to it).
The Problem
I edited an EditForm.aspx on a list and added my own web part to handle data entry. This was necessary because the logic required an easy-to-use GUI that restricted input to data already on the site.
After editing the form, when a user edits an item, the page loads with a bar at the top saying the file is published and everyone can read it. There’s a “Save and stop editing” button — but clicking it did absolutely nothing.
The Solution
I had set the original ListFormWebPart to invisible, which was expected. But what you also need to do is change the ControlMode property of that same web part from Edit to Display.
That was it. That solved my problem.
After looking through every SharePoint method known to man (and woman) for the status of the .aspx file, this one setting was all it needed.
Note: This applies to SharePoint 2007. I hadn’t written a custom fill-in web part for SharePoint 2010 at the time of writing.
Really hope this saves someone a lot of time.