- 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 automatically creates a form area and inserts the field inside that form area. The form area appears as a dashed line when you are editing the page.
- On the Insert menu, point to Form, and then click Drop-down box.
- Type the label beside or above the drop-down box 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.
For your form to work correctly, you need to use a unique name for this form field.
- 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.