Building an insert page block by block
You can add the basic building blocks of an insert page separately using the
form tools and the Server Behaviors panel. You can also add the building blocks
all at once using the Record Insertion Form live object.
The first step is to add an HTML form to the page to let users enter data.
To add an HTML form to an insert page:
Create a new page (File > New) and lay out your page using the design tools.
Add an HTML form by placing the insertion point where you want the form to appear
and choosing Form from the Insert menu.
An empty form is created on the page. You may have to turn on Invisible Elements
(View > Visual Aids > Invisible Elements) to see the form’s boundaries,
which are represented by thin red lines.
Name the HTML form by clicking the <form> tag at the bottom of the Document
window to select the form, opening the Property inspector (Window > Properties),
and entering a name in the Form Name box.
You don’t have to specify an action or method attribute for the form to
tell it where and how to send the record data when the user clicks the Submit
button. The Insert Record server behavior sets these attributes for you.
Add a form object (Insert > Form Objects) for each column in the database
table you want to insert records into.
The form objects are for data entry. Text fields are common for this purpose,
but you can also use list/menus, checkboxes, and radio buttons.
For more information on form objects, see Creating Interactive Forms. Add a
Submit button to the form (Insert > Form Objects > Button).
If you wish, change the label of the Submit button by selecting the button,
opening the Property inspector (Window > Properties), and entering a new
value in the Label box.
For example, here’s the Property inspector of a button labeled “Insert
Record”:
1 2 3
5 6 7
8 9 10
11 12 13
14 15 16
17 18 19
20 21 22
23 24 25
26 27 28
29 30 31
32 34 35
36 37 38
39 40 41
42 43 44
45 46 47
48 49 50
51 52 53
54 55 56
57 58 59
60 61 62
63 64 65
66 67 68
69 70 71
72 73 74
75 76 77
78 79 80
81 82 83
84 85 86
87 88 89
90 91 92
93 94 95
96 97 98
99 100 101