Microsoft Windows SharePoint Services
HomeBackForwardPrint

Form Web Part custom properties

Form Web Part custom properties

The custom property of the Form Web Part is listed below with its "friendly" name used in the tool pane and its property name in parentheses.

Source Editor (Content)

Opens a Text Editor Window which you can use to add or edit HTML source code. The Source Editor is intended for users with knowledge of HTML syntax.

By default, when you first add the Form Web Part to your Web Part Page, the following HTML code is inserted and used to display the text box and Go button, and execute Java script:

<div (1)
onkeydown="javascript:if (event.keyCode == 13) _SFSUBMIT_"> (2)   
<input type="text" name="T1"/> (3)
<input type="button" value="Go"  (4)
onclick="javascript:_SFSUBMIT_"/> (5)
</div> (1)

1  Defines a block element for the Form Web Part.

2  Defines a placeholder for a Java script routine that passes the form data to the other Web Part when the ENTER key is pressed.

3  Creates the text box on the form and defines the form field passed to the other Web Part.

4  Creates the Go button on the form.

5  Defines a placeholder for a Java script routine that passes the form data to the other Web Part when the Go button is pressed.

Caution   Do not modify the onkeydown or onclick event code in the Source Editor. The Form Web Part dynamically creates the Java script routine at run-time to create the connection to the other Web Part, and you may unintentionally break the Form Web Part.

If you customize the Form Web Part, keep in mind the following important points:

You cannot view or modify this property in personal view.

Note   You can more easily modify the Form Web Part by using an HTML editor compatible with Microsoft Windows SharePoint, such as Microsoft Office FrontPage 2003.

©2003 Microsoft Corporation. All rights reserved.