You use Microsoft Office SharePoint Designer 2007 to add a
Custom List Form Web Part on a Microsoft Windows SharePoint Services 3.0 site.
Then, you try to attach a file by clicking Attach File in the
custom form on the Web site. When you do this, you receive the following error
This form was customized not working with attachement.
Issues that are fixed in Windows SharePoint Services 3.0 by the Windows SharePoint Services 3.0 Infrastructure Update
Edit the XSL code in the .aspx page. To do this, follow
these steps, as appropriate for your situation.
Microsoft provides programming examples
for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or
fitness for a particular purpose. This article assumes that you are familiar
with the programming language that is being demonstrated and with the tools
that are used to create and to debug procedures. Microsoft support engineers
can help explain the functionality of a particular procedure. However, they
will not modify these examples to provide added functionality or construct
procedures to meet your specific requirements.
For custom edit item forms and for custom new item forms
Move the cursor to the table cell in the custom form
control where you want the attachment to be displayed. Then, right-click the
cell, point to Insert, and then click Row
Below. A new table row that has two column cells is
Move the cursor to the left table cell of the new row,
and then type Attachments.
Move the cursor to the right-side table cell of the new
row, switch to Code view, and then enter the following code.
If you make more changes to the page, SharePoint Designer
2007 may automatically add a unique ID to the attachment code that you added.
For example, “<tr id="idAttachmentsRow">” is changed to “<tr
This process may cause
tags that are added automatically.
You may receive the following error message:
An unexpected error has occurred
this issue, move the Custom List form outside the Web Part zone.
Can't move focus to the control because it is invisible,
not enabled, or of a type that does not accept the focus.
receive this error message, make sure that the ListForm Web
Part that is on the page by default is still there. Then, set the Layout to Hidden, and close the Web Part. To do this, follow these steps:
Right-click the List form Web Part in
Click Web Part Properties, and then
In the Layout dialog box, click to select
Hidden, and then close the Web Part.