2019.2

Table Of Contents
Note: HTML has some restrictions as to which types of elements are allowed as children
of other elements. For example, a paragraph element is not allowed to have children that
are block level elements - like a Div or a Table. If inserting content at the selected location
would produce invalid HTML the final result may be different than expected. For example,
when you insert a Div into a paragraph, the paragraph gets split in two. This means you
end up with two paragraphs with the Div in between.
12. Close the dialog. Now you can start adding elements to the Form (see "Using Form
elements" on page558, "Form Elements" on page718, and "COTG Elements" on
page705).
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 page632).
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786) and styling (see "Styling templates
with CSS files" on page743).
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 (a Workflow process that starts with a
Server Input task, for example).
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
characters are converted to ASCII HEX values.
l
multipart/form-data: No characters are encoded. This value is required when
you are using forms that have a file upload control.
l
text/plain: Spaces are converted to "+" symbols, but no special characters are
encoded.
Page 716