CM/Forms

Introduction to CM/Forms

CM/Forms is a ConSol CM add-on which enables the creation of web forms. Web forms can be filled out by unregistered users, i.e. user who have not logged in or user who have not yet been created in the Web Client or CM/Track.

Concepts, terms and definitions

Concept

Other terms

Definition

webhook

 

Mechanism to allow communication between ConSol CM and external applications

submission

 

Data which was entered in the web form by a user and sent to ConSol CM by submitting the web form

Purpose and usage

Web forms are managed in the menu item Forms of the Web Client. Administrator permissions are required to work with web forms.

A web form consists of two components: the form itself, which includes the general configuration and the form fields, and a script to process the submitted data. This can be either an integration scripts, which is used together with a webhook, or a task script, which is used when the submissions are recorded in the ConSol CM database.

Web forms can be useful in a variety of use cases:

Available settings for web forms

Basic form data

The basic form data are shown in the upper section of the web form:

Form design

The lower section contains the designed form. The form.io library is used for designing the form. The available form components are displayed on the left and the form is displayed on the right.

The Form type setting determines the basic structure of the form:

You can drag-and-drop the desired components to the form on the right side. The configuration dialog for the component is opened automatically, see Fine-tuning a web form.

You can find more information in the official documentation of the form.io library (see Form Components, Layout Components and Data Components).

Data processing

There are two options for processing the data submitted in the web form:

The following figure illustrates data processing using a webhook (blue data flow) and persisting submits (yellow data flow).

Figure 27: Data processing for web forms

It is possible to both persist submits and use the webhook for one web form. The acceptance of the submission depends on the selected option:

If submits are only persisted, the web form is not notified about the result of the processing performed by the task script, i.e., the user who submitted the web form will not know if his request could be processed successfully.

Publishing a web form

Depending on the selected publish type, see field Publish type in the Basic form data, and the desired usage of the web form, there are different options for making the web form available.

Common use cases are:

The following figure shows a typical setup for the third use case:

Figure 28: Publishing a web form for external access embedded in a website

Note regarding publish type OWN

A custom-built application is required to serve web forms if the publish type is OWN. This application is not part of the ConSol CM distribution.

Please see Operating ConSol CM behind a proxy (e.g., Apache HTTPD) of the ConSol CM Setup Manual for information about the required proxy settings.

Basic tasks

You can perform the following actions on web forms:

Advanced tasks

Fine-tuning a web form

There is a large number of settings you can use for a form field. You can configure the field either directly when creating it, or afterwards by clicking the Edit icon:

There are several aspects which you usually need to consider when designing a web form: