• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 11. Creating Forms > Modifying a list box

Modifying a list box

A list box in the upper right of the form provides viewers with a list of workshops from which they can choose. The list box was created much in the same way as the Country pop-up menu earlier in the lesson. You'll make several changes to the list box. First you'll specify that the list box display six items rather than five.

1.
Click in the list box to select it. The Inspector changes to the Form List Box Inspector.

In the Form List Box Inspector, notice how the items for the list box have been entered in the same way as the Country pop-up menu. Each item has a label and value.

2.
Enter 6 for Rows, and press Enter or Return. This will increase the number of rows (or items) visible in the list box to six.

You'll add more items in a minute, but first you'll make the list box into a multiselection form field, so that users can select more than one workshop.

3.
Select the Multiple Selection option.

Selecting list box

Setting options in Form List Box Inspector

Now you'll add three more items to the list box.

4.
Click the New Item button () at the bottom of the Form List Box Inspector to create a new item. In the left text box at the bottom of the Inspector, delete the text “item,” enter History of Poetry, and press Tab. In the right text box, enter Workshops_History, and press Enter or Return.

5.
If necessary, scroll down the list box in the Form List Box Inspector to view the item you just added. (You can also increase the size of the Inspector by dragging its lower right corner.)

6.
Click the New Item button to create a second new item, and enter European Poetry as its label and Workshops_European as its value.

7.
Click the New Item button to create a third new item, and enter African Poetry as its label and Workshops_African as its value.

8.
Choose File > Save to save the page.

Now you'll preview the page in GoLive to verify that the list box works as it should. Notice that only six workshops are displayed in the pop-up menu and that the user must use the scroll bar to access the workshops that you added.

9.
Click the Preview tab in the document window. To select more than one item in the list box in the Preview mode, click the first item and then Ctrl-click (Windows) or Command-click (Mac OS) to add additional items to your selection. You can also Shift-click to select a contiguous range of items in the list.

10.
Click the Layout tab in the document window to return to the Layout Editor.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint