Form rendering form-rendering

Selecting the form rendering template selecting-the-form-rendering-template

The form settings enable you to select the template used to generate the pages. To access them, click the Properties button in the form detail toolbar, and select the Rendering tab. There are a number of templates (style sheets) available by default.

Form properties Rendering tab with the Template list open, showing Standard form and Theme 1 to Theme 7.

The bottom section of the editor enables you to view a rendering of the selected template.

The zoom feature lets you edit the selected template.

Form generation template Theme 5 dialog with the Page layout link and CSS settings.

You can modify or override these templates. To do this, click the Page layout… link and personalize the information.

Page layout dialog, Properties tab, with logo image, width and height, and the preview image path.

You can:

  • Change the image used as a logo and adapt its size,
  • Also specify the path for accessing the preview image when users select this rendering template.

The Headers/Footers tab lets you change the information displayed in the headers and footers of each form page using this template.

Page layout dialog, Headers / Footers tab, with Page headers and Page footers lines and Position fields.

Each line of the Page headers and Page footers section corresponds to a line in the HTML page. Click Add to create a new line.

Select an existing line and click the Detail button to personalize it.

Page headers detail dialog with Page layout, Borders and Font tabs and left and right zone content.

You can change the content of the line, add borders, and change the font attributes via the relevant tabs. Click OK to confirm these changes.

The Position fields let you define the position of elements in the page header and footer.

Headers / Footers tab with the Position lists for headers and footers, offering Hidden, Outside the page, In the page.

NOTE
Rendering templates are stored in the Administration > Configuration > Form rendering node.
For more on this, refer to Customizing form rendering

Customizing form rendering customizing-form-rendering

Changing the layout of elements changing-the-layout-of-elements

You can overload the style sheet for each element of the form (input fields, images, radio buttons, etc.).

To do this, use the Advanced tab.

Advanced tab of a form element with display settings such as Number of cells and Vertical alignment.

It enables you to define the following properties:

  • Label position: see Defining the position of labels,

  • Label format: Word wrap or No word wrap,

  • Number of cells : see Positioning the fields on the page,

  • Horizontal alignment (Left, Right, Centered) and Vertical alignment (High, Low, Middle),

  • Width of the zone: this can be expressed as a percentage or in ems, points, or pixels (default value),

  • Maximum Length: Maximum number of characters allowed (for Text, Number and Password type controls),

  • Lines: number of lines for a Multi-line text type zone,

  • Style inline: enables you to overload the CSS style sheet with additional settings. These are separated using ; characters as shown in the example below:

    Advanced tab with the Style inline value set to font-size; background: blue.

Defining headers and footers defining-headers-and-footers

Fields are sequenced in a tree structure whose root has the same name as the page. Select it to modify the name.

The title of the window must be entered in the Page tab of the form property window. You can also add a set content to the page header and footer (this information will be shown on every page). This content is entered in the matching sections of the Texts tab, as shown below:

Form properties Page tab with the window title, page header and page footer content.

Adding elements to HTML header adding-elements-to-html-header

You can enter additional elements to be inserted into the HTML header of a form page. To do this, enter the elements in the Header tab of the relevant page.

This lets you reference an icon that will be displayed in the page’s title bar, for example.

Page Header tab with a link element for a shortcut icon added to the HTML header.

Defining control settings defining-control-settings

When the user fills in the form, a check is automatically carried out on certain fields depending on their format or configuration. This lets you make certain fields mandatory (refer to Defining mandatory fields) or check the format of the data entered (refer to Checking data format). Checks are carried out during page approval (by clicking a link or button which enables an output transition).

Defining mandatory fields defining-mandatory-fields

To make certain fields mandatory, select this option when creating the field.

Field General tab with the Mandatory option checked for the Last name field.

If the user approves this page without having entered the field, the following message will be displayed:

Form page showing the default error message Field 'Last name' is mandatory, with the empty field highlighted.

You can personalize this message by clicking the Personalize this message link.

Message personalization dialog opened from Personalize the message with custom text for an empty mandatory field.

If the user approves this page without having entered the field, the following message will be displayed:

Form page showing the custom MANDATORY FIELD message above the highlighted empty field.

Checking data format checking-data-format

For form checks whose values are stored in an existing field of the database, the rules for the storage field will be applied.

For form checks whose values are stored in a variable, approval rules depend on the format of the variable.

For example, if you create a Number check to store the client number, as shown below:

Number type field storing its value in a client variable, with Storage and Edit branches dialogs showing Integer type.

The user must enter an integer in the form field.

Defining fields conditional display defining-fields-conditional-display

You can configure the display of fields on the page to be displayed based on the values chosen by the user. This can apply to one field or a group of fields (when they are grouped in a container).

For each element of the page, the Visibility section lets you define the display conditions.

Container General tab with the Visibility Edit link opening the Visibility condition dialog.

Conditions can concern the value of database fields or variables.

In the field selection window, you can choose from the following data:

Select a field dialog showing the Context tree with Identifier, Language, Origin, Recipients and Variables.

  • The main tree contains the parameters of the form context. The default parameters are the Identifier (which matches the encrypted identifier of the recipient), Language and Origin.

    For more on this, refer to this page.

  • The Recipients sub-tree contains the input fields inserted into the form and stored in the database.

    For more on this, refer to Storing data in the database.

  • The Variables sub-tree contains the available variables for this form. For more on this, refer to Storing data in a local variable.

For more on this, refer to the use case available here: Displaying different options depending on the selected values.

You can also condition the display of form pages using the Test object. For more on this, refer to this page.

Importing elements from an existing form importing-elements-from-an-existing-form

It’s possible to import fields or containers from other Web forms. This lets you create a library of re-usable blocks which will be inserted into forms, such as the address block, the newsletter subscription area, etc.

To import an element into a form, apply the following steps:

  1. Edit the page which you want to insert one or more elements into, then click Import an existing block in the toolbar.

    Page editor toolbar with the Import an existing block button highlighted.

  2. Select the Web form which contains the fields to import and choose the containers and fields to import.

    Import an existing block dialog with a source Web application and the blocks to import checked.

    note
    NOTE
    The Edit link icon to the right of the source form name lets you view the selected Web form.
  3. Click Ok to confirm insertion.

    Page tree after import, now containing the Last name, Country, Account # and Email fields.

recommendation-more-help
campaign-help-v8