Thursday, April 28, 2011

Attachment not working for Edit Custom List form

Actually this is possible, but there is a procedure to following to make it
work. I had the same issue (working through it right now with MS support).
Here is a summary of the procedure...

Your Sharepoint environment must be at SP2 (actually infrasture update after SP1
is all you need, but SP2 is a better plan IMO), also you must upgrade to
Sharepoint Designer SP2.

In Designer open the NewForm.aspx of the list. Next, right-click on the
ListFormWebPart and select Web Part Properties. Select to Hide and Close the
web part.
Under the closed ListFormWebPart, create some space and add a custom List Form.
Make your customizations to the Custom list Form.

Apparently the DataFormWebPart, which is the "Custom List Form" does not add
everything to the page to support attachments. But by closing and hiding the
ListFormWebPart, whatever scripting that is needed by the attachment field is
added to the page and is available to the Custom List Form.

I have not found a good tutorial about this on the web, maybe someone can put
that together...

No comments: