Creating HTML Form Web Parts for SharePoint


The most basic type of form that can be utilized in SharePoint is the traditional HTML-based form. This type of form has been used on HTML pages on traditional websites for years, and it's not difficult to create. Many different types of programs exist for creating HTML forms, and all you need for importing these forms into SharePoint is the actual code of the forms themselves. For example, if you are using FrontPage, you can simply run the Form Wizard to create a form and then copy and past the code information into a Form Web Part in SharePoint.

NOTE

The HTML Form Web Part is only useful if you have existing HTML forms that you want to transfer to a SharePoint site. The procedure outlined here describes how to create this Web Part, with the assumption that you will be copying and pasting HTML code from an existing form, or one that you created using an HTML Editor such as FrontPage.


To create and populate a Form Web Part in SharePoint, do the following:

1.

From the page where you want the Web Part Page to appear, click the Modify Shared Page link in the upper-right corner of the site.

2.

Navigate to Add Web Parts and then click Browse.

3.

From the default Web Part gallery, click Form Web Part.

4.

From the Add to drop-down box, choose a zone to add the Web Part to and then click Add. You can also perform this step by dragging and dropping the Web Part into the appropriate zone.

5.

Close the Add Web Part box by clicking the X in the upper-right corner of the dialog box.

6.

Click the down arrow in the upper-right corner of the Form Web Part on your page and choose Modify Shared Web Part.

7.

Click the Source Editor button to open the HTML Source Code dialog box.

8.

Paste HTML code into the text entry box, as shown in Figure 22.1. You can use any HTML-formatted forms, such as those created with Microsoft FrontPage for the Web Part.

Figure 22.1. Entering an HTML form into a SharePoint Form Web Part.


9.

Click Save and then click OK to close the Form Web Part dialog box.

You can use these types of forms to leverage existing forms you've created in the past or to support clients without XML-compatible editors such as InfoPath that can't take advantage of the more SharePoint-integrated XML forms.



    Sams Teach Yourself Microsoft SharePoint 2003 in 10 Minutes
    Sams Teach Yourself Microsoft SharePoint 2003 in 10 Minutes
    ISBN: 672327236
    EAN: N/A
    Year: 2004
    Pages: 181

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net