Share via


Cat's out of the bag - How to get back attachment functionality with Custom List Forms

IMPORTANT: This issue has now been resolved via an official hotfix from Microsoft. Please see Error message when you try to attach a file in a custom form on the Web site in Windows SharePoint Services 3.0: “This form was customized not working with attachment".

As posted by Marc Davis, there is an unsupported workaround for retaining attachment functionality with your custom list forms. For some time now, we've been supplying the workaround free of cost to customers who've opened support cases and requested a fix. We are okay with the Marc's posting, and to be honest something like this was bound to happen, considering our delay in posting the MSDN documentation for the issue. I am also relieved to see Marc's disclaimer in bold red. We understand your guys' frustration with the attachment problem, and I apologize we didn't post the workaround earlier. We just don't generally like providing unsupported cumbersome workarounds. Although I can't guarantee or give anything "official," I can hint that you may be seeing a real fix circa SP2 time frame. May be a ray of light at the end of the tunnel, yet.

Comments

  • Anonymous
    May 05, 2008
    Do you guys have an idea of when will SP2 be released, since SP1 came out not long ago?

  • Anonymous
    May 08, 2008
    I've lost so much time as a result of this (and now my list is broken).  Any expidited fix would be greatly appreciated and way to repair existing customized forms (or reset back to default). thanks

  • Anonymous
    May 08, 2008
    I really can't give a timeframe, as everything is tentative, Ricky. Sakendrick - In what way is your list broken beyond attachment functionality? You can always re-insert a normal List Form (ala ListFormWebPart) back on your form pages. Though, it shouldn't be removed in the first place; read our post about preventing issues with supporting files.

  • Anonymous
    June 20, 2008
    My problem is related, but not exactly the same.  With WSS 3 I'm accustomed to being able to quickly create a List "New Item Form" page in SPD, by creating a web part page and then using the Data Source Web Part to insert the selected Fields as "New Item Form".  When I do this with our MOSS site, after detaching the page layout on the page, I get "Error Creating Control - ff4_new  Object reference not set to an instance of an object".  I deleted and recreated lists and pages with the same result.  Some of the site default lists work fine on the page, but other give the same error.  Any ideas?

  • Anonymous
    June 23, 2008
    Hi, i have problem with this workaround. I have custom list form with 2 fields : title and toBeHidden. when i make addform and in this form delete toBehidden field, everything is ok and works fine. But when i do this in edit form, this workaround stops work. When i have toBeHiddenfield in edit form, workaround works, when i delete toBeHidden field, workaround doesn't work. I debuged SPDataSourceEx and found, that function ExecuteUpdate is not started when i delete toBeHidden field. but is not possible found why, because this function is called from external code. do you know solution ? thank for advice

  • Anonymous
    June 25, 2008
    @Michal: Why delete the field "toBeHidden" when you can simply hide it using CSS? Try wrapping the form field with something like this <span style="visibility:hidden;"> ... </span> or <span style="display:none;"> ... </span>. Does that resolve the issue you see on the Edit Form?

  • Anonymous
    July 10, 2008
    Any update on a (possible) time frame for SP2? This issue should have been addressed months ago.

  • Anonymous
    July 31, 2008
    Anyone knows why SPDataSourceEx doesn´t work in Edit Mode if the webpart is into a WebPartZone?  I need the webpart to be into a webpartzone otherwise audience doesn´t work. Any solution?

  • Anonymous
    July 31, 2008
    Gabriel: just to confirm, it doesn't work in the web part zone. In fact, the recent infrastructure update (KB coming soon) suffers from the same problem; sorry. I'll take your comments back to some of my peers. Certainly, not having audience targeting is a huge hit. No solutions I know of...

  • Anonymous
    August 30, 2008
    Can you tell me where the MSDN documentation for this fix is located?

  • Anonymous
    October 08, 2008
    I believe this has been resolved with a hotfix - I'm about to try it... http://support.microsoft.com/kb/953271

  • Anonymous
    November 04, 2008
    hotfix worked for me, no need to go to the effort of following marc's workaround.

  • Anonymous
    May 21, 2009
    We are on MOSS 2007 - with SP2.  I have just run into the error of not being able to add an attachment to a customized NewForm.aspx.  Is there a fix for this?  I have tried to install the hotfix mentioned above, but it says that my version was "not the version expected" - assuming we are further along than what it's looking for.  Any help would be greatly appreciated.  thanks. Nick

  • Anonymous
    May 21, 2009
    @simplysql: If you have SP2 for MOSS installed, you will also want to get SP2 for SharePoint Designer installed. After this is finished, re-insert your Custom List Form cleanly. The SPD update includes the manual XSLT fixes automatically, so you don't have to make any changes yourself. And the MOSS update incloudes the necessary server-side fix for this to work.

  • Anonymous
    May 23, 2009
    Not sure what happened but for me the problem is still not fixed. On the server side we have WSS 3.0 + SP2 + April Cumulative Update (KB 968850) On the client side we have SharePoint Designer 2007 + SP2. The code in question is still missing from the rendered pages even on newly created custom forms. Anything we miss or is this bug still not fiexed after such a long time? We tried to apply the SPD hotfix which was released for this issue (KB 960311) but it requires SPD SP1 and not SP2.

  • Anonymous
    June 04, 2009
    The comment has been removed

  • Anonymous
    July 19, 2009
    How does this apply to Data View forms? I'm using a Data View for New Item and Edit Form and am struggling to find any way of managing attachments. Are attachments disabled in Data View?

  • Anonymous
    July 19, 2009
    I am likely confused, having just realized that the Custom List Form is in fact a Data View. Does this mean that attachments only works on the default NewForm.aspx and EditForm.aspx pages if the List Form web part is hidden and closed and a Custom List Form inserted? Is there no way of making attachments work on a standalone aspx page created from scratch?

  • Anonymous
    July 28, 2009
    The comment has been removed

  • Anonymous
    September 06, 2009
    @Earl B Same here! I'm starting too lose all my hair on this one... and it wasn't much already!!! Does anyone please has a solution ?!? Many thanks in advance.

  • Anonymous
    November 16, 2009
    The comment has been removed

  • Anonymous
    April 05, 2010
    Bob e posted the link to http://support.microsoft.com/kb/953271, but there's much more than just the hotfix involved with this. I've struggled with this bug for months, and that KB article finally listed everything needed to get it to work. I also upgraded my Designed to SP2, which I heard was also necessary. I'm so glad to have this working now.

  • Anonymous
    May 30, 2010
    I am in a similar situation as grubi - we have WSS 3.0 SP2 installed and I'm using SPD 2007 SP2. When I try and use the attachment functionality in a custom edit form, I get an 'Object Required' JavaScript error and have to cancel out of the form. I have the original list form hidden and closed on the page. Please help - I've tried several workarounds but just can't get the upload attachment form to work as expected. Thanks Nicky