Add a drop-down box to a form
In Page view, do one or both
of the following:
Add
a drop-down box
- Click in the form where you want to place the drop-down
box.
If you are inserting a form field but have not already
created a form, Microsoft FrontPage will automatically
create a form area and insert the field inside that form.
The form area will appear as a dashed line when you are
editing the page.
You can insert a new line by pressing ENTER.
- On the Insert menu,
point to Form, and then click
Drop-down box.
- Type the label for the drop-down box directly on the
form.
Set
the properties of a drop-down box
- Double-click the drop-down box.
- In the Name box, type a
name to identify the drop-down box.
This internal name, which is not shown on the form,
identifies the drop-down box in the form results. It will be
visible to the site visitor on the default confirmation
page, which is displayed when you use a
form handler rather than a custom .
- Click Add to add the
choices you want to display in the drop-down box.
- In the Choice box, type
an option you want to display in the drop-down box.
If you want the value for this choice to be different from
the text displayed in the drop-down box itself, select
Specify value, and
then type the value in the box.
For example, a choice in the menu could be
John, but the value returned
in the form results could be me.
- Click Selected under
Initial State if you
want the choice to be selected by default when a site
visitor first opens the form.
- Click OK.
- Repeat steps 3 through 6 for each choice you want to
add.
- To change the order in which choices are displayed,
click a choice in the list, and then click the
Move Up or
Move Down button.
- In the Height box, type
how many lines of text you want to show in the drop-down
box.
For example, if the drop-down box has three options, you
can set the height to 3 so that
all choices are visible.
- Click Yes under
Allow multiple
selections if you want to allow multiple selections in
the drop-down box. If you click No,
the site visitor will be able to make one choice only.
- Click the Style button to
access other options for formatting your form using
cascading style sheets as an
inline style.
Note To test the functionality of your form, you
must first publish your web site to a web server running
either the
FrontPage Server Extensions or SharePoint Team Services
from Microsoft. Ask your web administrator or
Internet Service Provider whether this software is
installed on your web server. Once the web site is published,
click Preview in Browser
to test the form.