1.4

11.
Use the Location drop-down to select where to insert the element.
l
At cursor position: The element is inserted where the cursor is located in the
template.
l
Before element: The element is inserted before the current HTML element where
the cursor is located. For example if the cursor is within a paragraph, insertion
occurs before the <p> tag.*
l
After start tag: The element is inserted within the current HTML element, at the
beginning, just after the start tag.*
l
Before end tag: The element is inserted within the current HTML element, at the
end, just before the end tag.*
l
After element: The element is inserted after the current element where the cursor is
located. For example if the cursor is within a paragraph, insertion occurs 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 (at the top of the Workspace), from the current selection point until the
root of the body.
12. Close the dialog.
Modifying a Form
To modify a Form, you can of course edit the 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,
validation settings and the elements inside the Form.
Changing a Form's properties
1. Select the form (see "Selecting an element" on page 227).
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 325) and styling (see "Styling templates
with CSS files" on page 399).
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.
l
An Encryption Type (enctype):
l
application/x-www-form-urlencoded: Default. All characters are encoded
before they are sent. Spaces are converted to "+" symbols, and special
Page 271