1.7

Table Of Contents
Adding elements to a Form
To add an element to a Form or Fieldset, click inside the Form or Fieldset, select Insert > Form
elements, and choose the respective element on the menu. (When the element isn't available
via the menu, see the tip below.) Now you can change the element's settings:
1.
Add an ID (required) and, optionally, a class.
Note
The ID will be copied to the name attribute of the element. The name attribute is
what identifies the field to the receiving server-side script. To change the name,
select the element after inserting it and type the new name on the Attributes pane.
ID's and classes are also useful with regard to variable data (see "Personalizing Content"
on page522) and styling (see "Styling templates with CSS files" on page490).
2. Type a label, or choose No label under Style, to omit the label. (For Label elements there
are no other options to be set.)
3. If applicable, choose a style for the label (for the label of a Checkbox, for example, you
can't set a style).
l
Wrap input with label places the input element inside the Label element.
l
Attach label to input ties the label to the input element using the for attribute of
the Label element.
l
Use label as placeholder inserts the given label text in the placeholder attribute of
the field.
l
No style omits the label altogether.
Note
The first two label styles ensure that when the user clicks the label, the input
element gets the focus.
Page 368