1.7

Table Of Contents
11.
Use the Location drop-down to select where to insert the element.
l
At cursor position inserts it where the cursor is located in the template.
l
Before element inserts it before the HTML element in which the cursor is currently
located. For example if the cursor is within a paragraph, the insertion point will be
before the <p> tag.*
l
After start tag inserts it within the current HTML element, at the beginning, just after
the start tag.*
l
Before end tag inserts it within the current HTML element, at the end, just before
the end tag.*
l
After element inserts it after the element in which the cursor is currently located. For
example if the cursor is within a paragraph, the insertion point will be after the end
tag of the paragraph (</p>).*
* If the current element is located inside another element, use the Elements drop-down to
select which element is used for the insertion location. The list displays every element in
the breadcrumbs, from the current selection point until the root of the body.
12. Close the dialog. Now you can start adding elements to the Form (see "Using Form
Elements" on page367, "Form Elements" on page470, and "COTG Elements" on
page460).
Changing a Form's properties and validation method
Once a Form has been added, you can of course edit its HTML code directly in the Source view
of the workspace. Apart from that, there are a number of dialogs to change a Form's properties
and validation settings.
Changing a Form's properties
1. Select the form (see "Selecting an element" on page411).
2.
On the Attributes pane you can change:
l
The ID and/or class. ID's and classes are particularly useful with regard to variable
data (see "Personalizing Content" on page522) and styling (see "Styling templates
with CSS files" on page490).
l
An Action: the URL where the form data should be sent. The URL should be a
server-side script that can accept form data.
l
A Method: this defines whether the form should be sent using the GET or POST
method.
Page 365