Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Windows SharePoint Services
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
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)

Callout 1 Defines a block element for the Form Web Part.

Callout 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.

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

Callout 4 Creates the Go button on the form.

Callout 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:

  • Only one Go button (which uses the HTML element, <INPUT TYPE=SUBMIT/>) can be used to pass data to the other Web Part.
  • The Form Web Part uses the HTML <FORM> element. Certain HTML elements cannot be used inside a <FORM> element including <HTML>, <BODY>, and <FORM>.
  • All form field names must be unique. Each name value is used to connect to a corresponding column name in the Web Part you are connecting to.
  • You can only use the following <FORM> controls, which pass the following values to the other Web Part:
    Control HTML element Value passed
    Text Box. <INPUT TYPE=”text”> The VALUE attribute
    Text Area <TEXTAREA> The VALUE attribute
    Check Box <INPUT TYPE=”checkbox” The VALUE attribute if checked; the string, "off", if unchecked.
    Radio (Option)Button <INPUT TYPE=”radio”> The VALUE attribute if checked; the string, "off", if unchecked.
    Dropdown Box <SELECT> A comma delimited string of the VALUE attributes of the selected options; the string, "off", if no selection. For example, if “chairs” and “tables” are selected, the VALUE attributes is "chairs,tables".

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.

advertisement