2022.1

Table Of Contents
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 page830) and styling (see "Styling templates with CSS files" on page786).
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.
When you add a Capture OnTheGo (COTG) element to a template that you didn't start with a
COTG template wizard, the Designer will automatically add the necessary JavaScript files: the
jQuery library and the COTG library: cotg-2.1.0.js. (See: "Using the COTG plugin" on
page639.)
If a template contains an earlier version of the COTG library, the newest version will be added
to the resources, but you will be asked which version of the library you prefer to use. Your
preferred library will be included in the section (see: "Includes dialog" on page1030).
Page 627