3. Manage a form template

The features described in this section can be accessed with the Customer Account Manager and/or Workspace Administrator role.

3.1. Import a form template into the workspace

This feature can be accessed with the Customer Account Manager role and available without a subscription to Calenco Forms.

A form template is already present among the sample documents in a workspace:

  • automatically created when you first register with Calenco;

  • created in addition to existing spaces with the default content (see Add a new workspace).

Figure 8. Form template in default content

Form template in default content

If a workspace does not contain any form templates, or if you need more than one template, it is possible to import a form template that is provided by default.

  1. In the Main MenuWorkspaces, click ActionsImport sample form templates:

  2. The template's xml file is automatically injected into the Documents tab in the Calenco interface:

    [Note]

    The default template is injected into the French language menu (the default source language). If your source language is other than English, please contact your usual NeoDoc contact.

This template could be used to create:

3.2. Create a new form template

The features described in this section can be accessed with the Customer Account Manager and Workspace Administrator role.

3.2.1. Set as Template

It is possible to define the form template as the base template in order to customize it if necessary (see Edit a form template). This base template can be used to create form templates based on this template (see Create a form template based on a base template).

  1. In the Documents tab, for the desired form template, click Set a template:

    [Important]

    The created template is no longer linked to the original document.

  2. The created base template is stored in the menu Templates:

    Figure 9. Examples of base templates

    Examples of base templates

    [Tip]

    It is recommended to customize the label of the base templates for quick search and identification.

3.2.2. Create a form template based on a base template

  1. In the Documents tab, click Create.

  2. Select Form, select the desired base template from the drop-down menu, customize the name, and associate one or more tag(s):

    [Note]

    It is recommended that you always associate a tag with form templates when they are created. It will be used to associate an operator with this template, together with the tag of the respective form (see Create a new user account).

  3. Click on Create: the content editor opens the created content in a new tab.

    [Caution]Popup

    Some browsers (Mozilla Firefox) block pop-up windows: this can prevent the web editor from opening.

    Make sure to add the url of the web editor to the list of allowed sites in your browser settings.

  4. The new form template appears at the top of the document list in the Documents tab.

3.3. Activate a form template

The form template is stored in the Calenco interface.

In order to be able to create forms in the Calenco Forms application, the template must be:

  • enabled if it's a new model ;

  • reactivated if it's an updated template (or its dependencies or stylesheet) .

Procedure 50. To (re)enable the form template:

[Important]

To reactivate an updated template, close the document in the editor after saving the changes.

  1. Click the symbol for an inactive template.

  2. In the dialog that opens, check the box Active. For the template you want to reactivate, skip to the next step.

    If necessary, add style sheet settings.

  3. Click Validate.

    The active template is displayed with in the Calenco interface. It is available in the application for the creation of forms by operators (see Create a form):

    Figure 10. Form template synchronized with the web application

    Form template synchronized with the web application

3.4. Edit a form template

The features described in this section can be accessed with the Customer Account Manager and Workspace Administrator role.

3.4.1. Input the data

DocBook elements are characterized to associate specific behaviors (via attributes and associated values) with forms.

The WXE editor offers a menu Form fields which allows you to create and customize form templates without any special knowledge of the DocBook standard.

The menu is made up of three sub-menus, each with a group of buttons presented in the following sections:

3.4.1.1. Inline

This menu allows you to create inline elements in a form.

Button

Editing

Operator interface

Simple text

Date

Number

Check box

E-mail

Signature

Click on the link to open the dedicated area and sign it.

3.4.1.2. Contents

Use this menu to create block elements in a form.

Button

Editing

Operator interface

Selection (drop-down list)

Radio buttons

Multi-line text

For untitled elements, attach the introductory text to the element with the role=label.

Rich text

Dynamic List

To add a list item, place the cursor in the input field of the existing item, press the Enter key twice on the keyboard.

Multi-choice

Image

Checkbox with label

To edit the label content, select the element, place the desired content in the annotations attribute.

Optional section

3.4.1.3. Variant content

This menu allows you to create structure elements with alternative content in a form.

Button

Editing

Operator interface

Variant section (alternative)

The default alternative chosen in the form must have the same value of the remap than the parent section.

Figure with alternative title

The default alternative chosen in the form must have the same value of the remap than the parent section.

Variant Figure

The default alternative chosen in the form must have the same value of the remap than the parent section.

3.4.1.4. Customize the structure

Below you will find the modus operandi for some customizations of the elements for specific use and rendering in a form.

Modification

Editing

User interface

Reference list

To limit maintenance and reduce documents, it is better to refer to a list rather than duplicate it.

Give the list an identifier:

Insert a simple paragraph where you want to duplicate the list. Select it. Value the remap = [Reference List Identifier] and the role=listref.

The rendering is identical to the drop-down list.

Duplicable elements

A duplicable element can be duplicated in the same form.

Value the role=duplicable.

This applies to sections:

to table rows:

to items of bulleted lists:

For adding a bullet before the model, value the remap =addbefore.

3.4.1.4.1. To make a field compulsory

The entry of a value can be made compulsory by giving the value compulsory to the condition attribute of the control in question

The control is bordered in red as long as it is empty

When sending information, a message explains that the necessary values are missing