Creating buttons and check boxes
You can set up several types of buttons and check boxes on your Web page form. - The Submit button is labeled Submit Query, and sends data entered in the form to the CGI script for processing.
- The Reset button is labeled Reset, and clears the current data, resetting the form to its default values.
- Radio buttons let viewers select one item from a list. To make sure that the selection works properly, create logical groups of complementary radio buttons in the Form Radio Button Inspector.
- A custom button behaves exactly like a standard Reset, Submit, or Normal button, but you can customize its appearance. You can insert formatted or unformatted text, an image, or other content to make the form's user interface intuitive.
- The Check Box lets the viewer select multiple items from a list of options.
For information on adding labels to buttons and check boxes, see Adding labels.
To create a Submit, Reset, or custom button: - Drag the Submit Button icon
, the Reset Button icon , or the Button icon from the Forms set in the Objects palette to your form. - To change the label on the face of a Submit or Reset button, select Label in the Input Button Inspector and type a label (for example, Send).
- To create a custom button, set Button to Normal, and specify any of the following Form Button Inspector options:
- In the Name text box of the Inspector, enter a unique button name.
- In the Value text box, specify an action or a value to be passed to the CGI script (if necessary).
- Customize the button face by typing a label in the text box, or by dragging a Form Input Image icon from the Forms set in the Objects palette to the button, and then linking the icon to a graphic in the Form Input Image Inspector.
Note: Use the Type menu commands to format the label.
To create a Radio Button: Drag the Radio Button icon to your form and set the options in the Form Radio Button Inspector: - In the Group text box, type a group name, or select an existing group name from the pop-up menu.
- In the Value text box, type a value or a descriptive name for the radio button that identifies it within the group. When a viewer clicks the Submit button in the form, this value is passed to the CGI script if the viewer selects the radio button.
- Select Selected to make the radio button appear selected by default.
To create a check box: Drag the Check Box icon to your form and set the options in the Form Check Box Inspector: - In the Name text box, type a unique name to identify the check box.
- In the Value text box, type the value for the check box. When a viewer clicks the Submit button in the form, this value will be passed to the CGI script if the viewer selects the check box.
- Select Selected to make the check box appear selected by default.
|