# Form configuration - fields

# Attributes available for each field

Each form must have some fields :D Dynamic forms allow you to create multiple field types. Each form field has a set of standard configurations. Additionally, fields can contain their own configurations.

These are settings that you can activate in any field.

### size

The size of the field is defined on the basis of blocks, divide the screen into 12 parts and determine the size of the field "filling in these parts".12 will set the field size for the whole screen, 6 will set the field size for half the screen.

Screen sizes are defined by the letters **s,m,l (small, medium, large)**. Setting s12 m6 l3 will set the value 12 for small screens, 6 for medium screens and 3 for large screens.

<p class="callout info">size: s12 m6</p>

[![fullscreen](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/Zu1EmwDMjhvnYpNo-image-1590144046709.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/Zu1EmwDMjhvnYpNo-image-1590144046709.png)[![image-1590144137570.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/ybpUslyR05tiLbQa-image-1590144137570.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/ybpUslyR05tiLbQa-image-1590144137570.png)


### type

Field type, here we enter the specific field type you want to use e.g. select, text.

### id

field identifier.

<p class="callout warning">This value must be unique and must not contain spaces!</p>

### tooltip

When you hover over the field, a balloon will pop up, displaying any text or HTML.

[![image-1590147190230.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/j3NTSomnXSfjBXaA-image-1590147190230.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/j3NTSomnXSfjBXaA-image-1590147190230.png)


### label

Here you can enter the field title e.g. "Your name".

### validate

Here we can enter a list of any field validations (we can also create our own regex). An example of a validator is "required".

```JSON
//example
"validate": ["required", "email"]
```

#### Available validators

**after**  
**alpha** - The field under validation may only contain alphabetic characters.  
**alpha\_dash** - The field under validation may contain alphabetic characters, numbers, dashes or underscores.  
**alpha\_num** - The field under validation may contain alphabetic characters or numbers.  
**alpha\_spaces** - The field under validation may contain alphabetic characters or spaces.  
**before** - The field under validation must have a numeric value bounded by a minimum value and a maximum value.  
**between** - The field under validation must have a numeric value bounded by a minimum value and a maximum value.  
**confirmed** - The field under validation must have the same value as the confirmation field.  
**credit\_card**  
**date\_between**  
**date\_format**  
**decimal**  
**digits** - The field under validation must be numeric and have the specified number of digits.  
**dimensions** - The file added to the field under validation must be an image (jpg,svg,jpeg,png,bmp,gif) having the exact specified dimension.  
**email** - The field under validation must be a valid email.  
**ext** - The file added to the field under validation must have one of the extensions specified.  
**image** - The file added to the field under validation must have an image mime type (image/\*).  
**in**  
**integer** - The field under validation must be a valid integer value. Doesn't accept exponentiale notation.  
**ip**  
**is** - The field under validation must match the given value, uses strict equality.  
**is\_not** - The field under validation must not match the given value, uses strict equality.  
**length** - The field under validation must have exactly have the specified number of items, only works for iterables.  
**max** - The field under validation length may not exceed the specified length.  
**max\_value** - The field under validation must be a numeric value and must not be greater than the specified value.  
**mimes** - The file type added to the field under validation should have one of the specified mime types.  
**min** - The field under validation length should not be less than the specified length.  
**min\_value** - The field under validation must be a numeric value and must not be less than the specified value.  
**not\_in**  
**numeric** - The field under validation must only consist of numbers.  
**regex** - The field under validation must match the specified regular expression.  
**required** - The field under validation must have a non-empty value. By default, all validators pass the validation if they have "empty values" unless they are required. Those empty values are: empty strings, `undefined`, `null`, empty arrays.  
**size** - The file size added to the field under validation must not exceed the specified size in kilobytes.  
**url**

<p class="callout info">Parameters to attributes should be separated by ":" e.g. **digits:11** - means 11 numbers allowed.</p>

### icon

Field icon. We can set any Material Design compatible icons here.

<p class="callout info">[https://material.io/resources/icons/?style=baseline](https://material.io/resources/icons/?style=baseline)</p>

### hidden

Field display.

<p class="callout warning">A field that is hidden still exists on the form (but is invisible) its values can be sent!</p>

### disabled

Field is disabled.

### otrs\_visible

Here we specify where the field is to be added.

<p class="callout info">default: article</p>

#### `article`

The field will be added to the article.

#### `dynamicfield`

The field will be added where dynamic fields are displayed.

<p class="callout warning">Remember that if the field will have an identifier that matches the dynamic field in OTRS, but will not have this value set - it will not be added as a dynamic field!</p>

#### `all`

The field will be added both as a dynamic field (*if the identifier matches the field in OTRS*), and will be added to the note.

#### `none`

The field will not be added anywhere.

#### `file`

### placeholder

Default value displayed in the field as a placeholer

### value

Default field value. Here we can enter, for example, the default value of a selected item from the list or any other thing we want to complete by default on the form.

<p class="callout warning">This value can be changed by the user while filling in the form - unless the field is disabled or hidden.</p>

### api

API mechanism allows you to edit any attributes of each field (after the data is loaded, it will be automatically refreshed and the view will be re-rendered).

The API mechanism was created so that data from external systems can be entered into the forms. Using api, you can change any field parameter at any time when using the form.

Usually the field "api" is used for normal downloading of data from external systems. For example, if you want to enter a default value when downloading from another system, just enter the address of the endpoint, which will return the data in the appropriate format.

The address will be queried as soon as the form is loaded.

<p class="callout info">Option "api\_watcher" allows for more advanced actions.</p>

Example:

*The field is hidden by default and if it succeeds in getting data from the API it will be shown and its value will change to "New Value from API!"*

*Our API is available at [https://example.intalio.pl](https://example.intalio.pl)*

```JSON
{
  "size": "s12 m12",
  "type": "text",
  "max": 13,
  "id": "ExampleFieldID",
  "label": "Example field Label",
  "icon": "confirmation_number",
  "validate": [
    "required"
  ],
  "hidden": true,
  "value": "",
  "api":"https://example.intalio.pl"
},
```

*Response:*

```JSON
{
  "hidden": false,
  "value": "New Value form API!"
}
```

<p class="callout info">This way we can change any parameter of each field.</p>

### api\_watcher

Okay, not always easy is the best. That's why we created "api\_watcher."

This mechanism allows you to listen to changes in any fields and then send this information to any API.

This parameter allows you to complete the current field with data that are dependent on another field.

For example:   
Directory of services - you choose "Hardware repair", and in the next step you choose the name of a specific item, e.g. "Computer repair".

To make such a form, the detailed field ("Repairing the computer") must listen for changes in the general field "Hardware repair". If there is any change in the general field - the detail field will ask the API and update its data.

*Configuration:*

```JSON
{
  "size": "s12 m12",
  "type": "text",
  "max": 13,
  "id": "ExampleFieldID",
  "label": "Example field Label",
  "icon": "confirmation_number",
  "validate": [
    "required"
  ],
  "hidden": true,
  "value": "",
  "api_watcher": {
    "delay_api": "",
    "fields": [
      {
        "field_id": "ExampleField_Main",
        "api": "https://example.intalio.pl?DynamicFormField=${value}&lang=${LANG}"
      }
    ]
  }
},
```

<p class="callout info">As you can see in the example above, the "api\_watcher" mechanism allows you to paste the value received from the listened field anywhere. Add **${value}** anywhere in the URL and the data will be pasted there. The currently loaded language will appear in place **${LANG}**</p>

#### Using **${value}**

This is the key where the value from the listening field will appear.

#### Using ${LANG}

If your system is to support multiple languages, the API must also do it. To send the currently running form language to the API, you can add this parameter.

#### fields

"fields" is an array that can contain any number of fields for which the current field is to listen.

##### field\_id

This is where you type the field identifier you want to listen to.

##### api

The address to be called after changing the data in the listening field.

### api\_add\_lang

Do you include the variable ${LANG} and insert the currently selected language in its place

### add\_session\_id\_to\_api

If you want to send a user session to the API, you can do so by activating this parameter. If it is activated, the system will automatically attach the sessionId parameter to each request.

<p class="callout info">If you want to authorize users or have access to user data via session, you must use this parameter.</p>

### pdf (&gt;=1.2.20)


The **pdf** parameter allows you to control how a field is rendered in the generated PDF document.

This configuration affects only the PDF output and does not change the behavior of the field on the form.

<p class="callout info">The PDF configuration is read dynamically using **getFieldProperties(fieldId)**.</p>

[![image.png](https://docs.intalioservices.com/uploads/images/gallery/2026-03/scaled-1680-/RYdrMGywGYnhUui4-image.png)](https://docs.intalioservices.com/uploads/images/gallery/2026-03/RYdrMGywGYnhUui4-image.png)

#### signature

If **signature** is set to `true`, the answer column in the PDF will be internally divided into two parts:

- Left side – field value
- Right side – signature area (separated by a vertical line)

If this parameter is not set or equals `false`, the field is rendered normally.

#### signatureLabel

Text displayed above the signature area.

<p class="callout info">Default value: **"Podpis"**</p>

#### signatureText

If provided, this text will be displayed instead of an empty signature line.

This option is useful when confirmation is generated electronically and no manual signature is required.

**Example use cases:**

- Approved
- Not applicable
- Electronically confirmed

#### print

If set to `false`, the field will not be included in the generated PDF.

<p class="callout info">Default value: **true**</p>


#### PDF rendering behavior

The main PDF table remains two-column:

**Question | Answer**

Only fields that have `pdf.signature = true` will have the Answer column internally divided into:

**Answer | Signature**

Other fields remain unchanged.

#### Example configuration[![image.png](https://docs.intalioservices.com/uploads/images/gallery/2026-03/scaled-1680-/RoJjIykGxVmUovok-image.png)](https://docs.intalioservices.com/uploads/images/gallery/2026-03/RoJjIykGxVmUovok-image.png)

```json
{ 
  "size": "s12 m6", 
  "type": "text", 
  "id": "ApprovalField", 
  "label": "Approval", 
  "hidden": false, 
  "value": "", 
  "pdf": 
  { 
    "signature": true, 
    "signatureLabel": "Signature" 
  } 
}
```

#### Example with automatic confirmation text

[![image.png](https://docs.intalioservices.com/uploads/images/gallery/2026-03/scaled-1680-/UwUuYUYSRwuPdKtd-image.png)](https://docs.intalioservices.com/uploads/images/gallery/2026-03/UwUuYUYSRwuPdKtd-image.png)

```JSON
{ 
  "size": "s12 m6", 
  "type": "text", 
  "id": "StatusField", 
  "label": "Status", 
  "hidden": false, 
  "value": "", 
  "pdf": 
  { 
    "signature": true, 
    "signatureText": "Electronically approved" 
  } 
}
```

# Button

## Button (button)

**download PDF** *example*:

```JSON
{
  "mode": "PDF",
  "pdf_action":"download",
  "question_label": "{questionLabel}",
  "answer_label":"{answerLabel}",
  ...
}
```

**submit form** *example*:

```JSON
{
  "mode":"submit"
  ...
}
```

**clone fields** *example*:

```JSON
{
  "mode": "clone",
  "clone_additional_shift": -1,
  "clone_fields": [
    {
      "id": "textField1" 
    },
    {
      "id": "textField2"
    }
  ],
  ...
}
```

### mode

#### submit

This mode allows you to send a form. It has no additional configuration options.

####  

#### clone (beta)

[![image-1590410169909.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/QTpm09FugDUIfA22-image-1590410169909.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/QTpm09FugDUIfA22-image-1590410169909.png)

This mode was created so that any number of fields can be copied. Imagine you are creating a form where someone has to add their cars (we don't know how many cars there are).

<p class="callout info">Thanks to this solution, the person filling in the form can click the button to copy any number of fields.</p>

<p class="callout warning">Field identifiers will be generated according to the following pattern:  
*field name \_ clone number \_ internal number*</p>

**Full example:**

```JSON
{
          "size": "s12 m6",
          "type": "text",
          "id": "carModel",
          "label": "Car",
          "icon": "drive_eta",
          "validate": [
            "required"
          ],
          "hidden": false,
          "value": ""
        },
        {
          "size": "s12 m6",
          "type": "text",
          "id": "carType",
          "label": "Registration number",
          "icon": "directions_bus",
          "validate": [
            "required"
          ],
          "hidden": false,
          "value": ""
        },
        {
          "size": "s12 m12 center",
          "type": "button",
          "id": "clone_btn",
          "mode": "clone",
          "label": "Add next car",
          "clone_additional_shift": -2,
          "clone_fields": [
            {
              "id": "carModel"
            },
            {
              "id": "carType"
            }
          ]
        }
}
```

##### clone\_additional\_shift

Where are the new cloned fields to appear. Enter the number of fields from the button e.g. -1, then the fields will appear before the button.

<p class="callout info">The mechanism takes both positive and negative numbers.</p>

##### clone\_fields

List of cloned fields. Here you give a list with the ID of the fields you want to copy.

#### PDF

[![image-1590411076866.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/7xWs43bpMCPapNfG-image-1590411076866.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/7xWs43bpMCPapNfG-image-1590411076866.png)

The PDF field allows you to generate a PDF printout of the entire form. You can download the file, print it or just open it in a new tab.

<p class="callout warning">To generate a PDF file, you must have a field with the id "OTRS\_Ticket\_Title" this field will be set as the print title.</p>

##### pdf\_action

In this parameter you set what should happen to the generated file, you have several options available:

- open
- print
- download

##### question\_label

title of the first column of the resulting file.

##### answer\_label

the title of the second column of the resulting file.

#### redirect

The redirection button. When you click it will take you to any other site.

##### redirect\_type

Type of redirection, available:

- **newWindow** - redirection to the address in the new tab
- **redirect** - redirection in the current card

##### redirect\_url

An address to redirect.

#####  

<span style="text-decoration: underline;">*version &gt;= 1.2.9*</span>

The system allows you to add the `SessionID` and `LANG` parameter to the url (the parameters are automatically set based on the current.

```
{
  "size": "s12 m12 center",
  "type": "button",
  "id": "redirect_with_session",
  "mode": "redirect",
  "label": "Redirect with session",
  "redirect_type": "newWindow",
  "redirect_url": "https://google.pl?SessionID=${SessionID}&lang=${LANG}"
}
```

*Such a setting will redirect to the following link:* https://google.pl?SessionID=123123&amp;lang=en

###  

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Checkbox

## Checkbox (checkbox)

This field, which someone can select, appears in two versions - as a single field (e.g. for approval of a contract), or as a set of fields.

[![image-1590572241142.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/7lu6fGjUKIwwrLZS-image-1590572241142.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/7lu6fGjUKIwwrLZS-image-1590572241142.gif)

### options\_style

Here you can determine how the layout of the fields should look like (if you have more than one field).

<p class="callout info">For more information on what you can type in here, please see the Responsibility section.</p>

### define\_output\_value

Is the value that goes into the output system to be taken from the label or value parameter.

### show\_one\_as\_fieldset (1.2.2)

show\_one\_as\_fieldset = true

[![image-1636981743097.png](https://docs.intalioservices.com/uploads/images/gallery/2021-11/scaled-1680-/2BNuQDaMdDGPD7xk-image-1636981743097.png)](https://docs.intalioservices.com/uploads/images/gallery/2021-11/2BNuQDaMdDGPD7xk-image-1636981743097.png)

show\_one\_as\_fieldset = false

[![image-1636981775754.png](https://docs.intalioservices.com/uploads/images/gallery/2021-11/scaled-1680-/2WvWL7ICHaJI8M3U-image-1636981775754.png)](https://docs.intalioservices.com/uploads/images/gallery/2021-11/2WvWL7ICHaJI8M3U-image-1636981775754.png)

If we have one value and we still want to display it as fieldset.

### options

All available options.

#### value

#### label

#### checked

Check if you want this option to be selected by default.

#### disabled

Check if you want this option to be inactive by default.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Radio

## Radio (radio)

This field allows you to select one of the available fields.

[![image-1590572469846.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/sJoK9yDjDhykc7Q4-image-1590572469846.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/sJoK9yDjDhykc7Q4-image-1590572469846.gif)

### options\_style

Here you can determine how the layout of the fields should look like.

<p class="callout info">For more information on what you can type in here, please see the *\[responsive section\]*.</p>

### define\_output\_value

Is the value that goes into the output system to be taken from the label or value parameter.

### options

All available options.

#### value

#### label

#### checked

Check if you want this option to be selected by default.

#### disabled

Check if you want this option to be inactive by default.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# CompareField

## CompareField (comparefield)

A compareField is a field that allows you to combine values from multiple fields. Thanks to this field you can combine several fields into one and send as e.g. request title.

*example:*

```JSON
{
  "fields": [ 
    {
      "id": "checkBoxField"
    },
    {
      "id": "textField"
    }
  ],
  "output": "${textField} <-> ${checkBoxField}"
}
```

<p class="callout warning">This field has no view, it is a virtual field!</p>

*<span style="text-decoration: underline;">For example:</span>*  
We have two fields "First name" and "Last name", we want these values to be sent as one field, e.g. the title of the request, and we also want to add "Your name:".

```JSON
{
  "fields": [
      {
	  	"id": "UserFirstName"
      },
      {
      	"id": "UserLastName"
      }
    ],
    "output": "Your Name: ${UserFirstName} ${UserLastName}"
}
```

Our fields:[![image-1590489835623.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/GbXC8189SoGn9OgQ-image-1590489835623.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/GbXC8189SoGn9OgQ-image-1590489835623.png)

[![image-1590489849932.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/0VwB4uCmr6YK1ur7-image-1590489849932.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/0VwB4uCmr6YK1ur7-image-1590489849932.png)

<p class="callout info">Field of type "compareField" had the identifier set to "UserFristNameAndLastName".   
Its output value was "Your Name: John Kowalski".</p>

### Use of variables:

<p class="callout warning">To combine the values of several fields, place the identifiers of these fields in two places.</p>

  
First, you need to activate a field in the "fields" parameter, and then determine in what form you want this field to be displayed by adding it to the "output" parameter.

In the output parameter you only need to use the following sequence ${field identifier}, the rest depends on your imagination.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# SelectField

## SelectField (select)

This field allows you to display a list.![Kapture.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/tfxkH8OpiQi0YssE-Kapture.gif)

<div data-lang="JSON" id="bkmrk-%7B-%22size%22%3A-%22s12-m12%22%2C"><div>```JSON
{<br></br>  "size": "s12 m12",<br></br>  "type": "select",<br></br>  "id": "api_Finder",<br></br>  "label": "API Finder",<br></br>  "validate": [<br></br>    "required"<br></br>  ],<br></br>  "icon": "find_in_page",<br></br>  "allow_add": false,<br></br>  "search": true,<br></br>  "search_error": "Brak pracowników pasujących do podanych kryteriów...",<br></br>  "placeholder": "api finder placeholder",<br></br>  "alphabetical_sorting": true,<br></br>  "define_output_value": "label",<br></br>  "add_session_id_to_api": true,<br></br>  "api_dynamic": {<br></br>    "delay": 250,<br></br>    "api": "https://kprm.int.intalio.pl/otrs/get-all-users.pl",<br></br>    "searching_label": "Trwa wyszukiwanie pracowników..."<br></br>  },<br></br>  "options": [<br></br>    {<br></br>      "value": "",<br></br>      "label": "",<br></br>      "selected": "true",<br></br>      "disabled": "disabled"<br></br>    }<br></br>  ]<br></br>},
```

<div><span style="color: #222222; font-size: 2.333em; font-weight: 400;">allow\_add</span></div></div></div>Enabling this parameter will add new things to the list. If your list is not closed, you can let new things be added to it.

[![image-1590491763376.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/XvZTFTDMLWuqfKrA-image-1590491763376.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/XvZTFTDMLWuqfKrA-image-1590491763376.gif)

### search

It allows you to search in the list, if it is enabled together with "allow\_add" you will be able to search, or if you do not find an interesting option - add your own.

### search\_error

If the item you are looking for is not found, the message given here will be displayed.

### alphabetical\_sorting

Enable alphabetical sorting of fields. If this option is disabled, the fields are displayed in the order given in the "options" parameter.

### define\_output\_value

Each field is described by two parameters "label" and "value". If you want to, you can define here whether you want the system to be "label" or "value".

### options

All available selection options.

<p class="callout warning">Remember, if you don't want the first option to be checked by default, you must add an empty first option!</p>

#### value

Field value.

#### label

Field label.

#### checked

Should the field be selected by default.

#### disabled

Is the field to be inactive by default.

### api\_dynamic

<p class="callout info">Added in version **1.0.24**</p>

[![image-1620142849407.gif](https://docs.intalioservices.com/uploads/images/gallery/2021-05/QmJzNt9CkxxKJIok-image-1620142849407.gif)](https://docs.intalioservices.com/uploads/images/gallery/2021-05/QmJzNt9CkxxKJIok-image-1620142849407.gif)

This field allows you to search the api dynamically.

<p class="callout info">This field supports all other api attributes (e.g. add\_session\_id\_to\_api)</p>

**Response:**

<div data-lang="callout info" id="bkmrk-required-format-data"><textarea style="display: none;">Required format data: { "options": \[ { "value": "p.majewski", "label": "Piotr Majewski (p.majewski)" }, { "value": "piotr", "label": "Piotr Nowak (piotr)", } \] } </textarea><div><div>```JSON
{<br></br>  "options": [<br></br>    {<br></br>      "value": "p.majewski",<br></br>      "label": "Piotr Majewski (p.majewski)"<br></br>    },<br></br>    {<br></br>      "value": "piotr",<br></br>      "label": "Piotr Nowak (piotr)",<br></br>    }<br></br>  ]<br></br>}<br></br>
```

</div></div></div>#### delay

<span class="hljs-comment">The number of milliseconds to wait for the user to stop typing before</span><span class="hljs-comment"> issuing the ajax request.</span>

#### api

The url that the request should be made to.

#### searching\_label

Translation for the search text.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# DateTime

## DateTime (datetime)

[![image-1590497491784.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/erpAH4uqVmu3rW4l-image-1590497491784.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/erpAH4uqVmu3rW4l-image-1590497491784.gif)

Example:

```JSON
{
   "size":"s12 m12",
   "type":"datetime",
   "id":"ExampleID",
   "label":"Example Label",
   "validate":[
      ""
   ],
   "icon":"person",
   "hidden":false,
   "datetime_config":{
      "locale":"English",
      "enableTime":false,
      "mode":"range",
      "time_24hr":true,
      "dateFormat":"Y-m-d H:i:00",
      "altInput":true,
      "altFormat":"Y-m-d H:i"
  
```

### datetime\_config

The date and time component is very extensive. The whole configuration in this case is in "datetime\_config" and is passed directly to the component.

### locale

Calendar language

### enableTime

If you want the calendar to also display a component for time selection, you must have this option checked.

### time\_24hr

24-hour date format.

### dateFormat

Output format, you can determine whether you want to send the day, month, year, hour, minute or you want to format it completely different.

<p class="callout warning">This is an output format not shown on the screen! To change the format of the data displayed on the screen, use "altInput".</p>

[![image-1590498552766.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/yNYTiqpIV1YKbNwF-image-1590498552766.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/yNYTiqpIV1YKbNwF-image-1590498552766.png)

### altInput

Do you run an alternative date display.

### altFormat

Alternative date display, i.e. the outgoing date will be formatted on the basis of "dateFormat", but will be displayed on the basis of "altFormat"

### noCalendar

Display only the component responsible for the time.

### mode

Calendar mode. You can set whether someone should select a single date, a date range or whether they can select several independent dates.

#### none

A simple action.

[![image-1590501699889.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/MmIBLbDBLouge2pk-image-1590501699889.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/MmIBLbDBLouge2pk-image-1590501699889.gif)

#### multiple

Multiple date selection.

[![image-1590502680596.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/ORGNLIN8n34zUj8n-image-1590502680596.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/ORGNLIN8n34zUj8n-image-1590502680596.gif)

#### range

Selectable date range.

[![image-1590502727262.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/DcEKrIZEGlvw1rSC-image-1590502727262.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/DcEKrIZEGlvw1rSC-image-1590502727262.gif)

### enable

Add the ability to select dates only from specific date ranges.

#### from

#### to

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

<p class="callout info">[FlatPickr options](https://flatpickr.js.org/options/)</p>

# ImgButton - Image button - Extended HUB

## ImgButton (imgbutton)

[![image-1590504886026.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/DnRJlojSKfNxcCJH-image-1590504886026.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/DnRJlojSKfNxcCJH-image-1590504886026.gif)

The "ImgButton" mechanism allows you to create graphic buttons. You can use them to create e.g. another dashboard in the style "from general to specific".

If your system is going to have a lot of forms, you can create a lot of dashboards with buttons that will direct you to the next dashboards.

<p class="callout info">This element may or may not have a picture.</p>

*Example:*

```JSON
{
  "size": "s12 m4",
  "type": "imgbutton",
  "id": "ImgButton3",
  "otrs_visible": "all",
  "label": " ",
  "validate": [
    "required"
  ],
  "hidden": false,
  "image": "/static/img/bus/fuel_cell.jpg",
  "title": " ",
  "description": "Description 3",
  "redirect": "FuelCellConsultations.json",
  "redirect_text":"Go"
}	
```

### image

Image url. The image may be on the server or somewhere outside the server.

<p class="callout info">Remember that all additional elements must be in the static directory, only then they will be available at the url.</p>

### title

Text displayed on the button.

### description

The description that will be displayed above the redirection button.

### redirect

The address to which you want to redirect.

<p class="callout info">Here you can enter the file name of the next form e.g. "example1.json".</p>

### redirect\_text

Text displayed on the redirection button.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

###  

# HTML/FAQ

## HTML/FAQ (faq)

[![image-1590573288624.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/weqYvwJob3QUWuco-image-1590573288624.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/weqYvwJob3QUWuco-image-1590573288624.png)

Field of type "faq" allows to render any html code. You can use it, for example, to search for duplicate tickets and inform the person filling in the form that such a ticket already exists in the system (just use "faq" field with API running).

```JSON
{
    "hidden": false,
    "value": "<ul><li><a href='otrs.intalio.pl/ticket1'>Ticket1 already exists!</a></li></ul>"
}
```

<p class="callout info">In fact, whatever appears in the "value" field will be rendered, you can use this field to separate e.g. sections of the form or to display images.</p>

### Example - knowledge base:

```JSON
{
  "size": "s12 m12",
  "type": "faq",
  "id": "FAQ1",
  "label": "Infos from knowledge base",
  "validate": [
  ""
  ],
  "icon": "help",
  "hidden": true,
  "value": "No data...",
  "background_color": "#f5f5f5",
  "api_add_lang": true,
  "api_watcher": {
  "delay_api": "",
  "fields": [
    {
	    "field_id": "Field_with_problem",
    	"api": "http://otrs.intalio.pl/otrs/knowledge-base-api.pl?Query=${value}"
    },
    {
    	"field_id": "A_field_to_describe_the_problem",
    	"api": "http://otrs.intalio.pl/otrs/knowledge-base-api.pl?Query=${value}"
    }
  ]
},
```

### background\_color

The background color of the field.

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# CKEditor

## CKEditor (ckeditor)

[![image-1590576491342.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/i9hHyemDh5s2Dv21-image-1590576491342.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/i9hHyemDh5s2Dv21-image-1590576491342.gif)

The CKEditor field allows you to display an advanced text editor. This editor can be configured according to the CKEditor documentation.

*Example:*

```JSON
{
  "size": "s12 m12",
  "type": "ckeditor",
  "id": "ckEditor",
  "label": "CKEditor",
  "validate": [
    "required"
  ],
  "icon": "fingerprint",
  "hidden": false,
  "value": "Your text...",
  "config": {
    "language": "en"
  }
}
```

### config

Here you can use all available ckeditor settings

<p class="callout info">You can set up a lot of items that you will find in the official CKEditor documentation. An example parameter is **language**, which will change the language of the text editor.</p>

[![image-1590583026488.png](https://docs.intalioservices.com/uploads/images/gallery/2020-05/scaled-1680-/wOZcFWcBtfin4kac-image-1590583026488.png)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/wOZcFWcBtfin4kac-image-1590583026488.png)

<p class="callout info">CKEditor docs: [https://ckeditor.com/docs/ckeditor4/latest/](https://ckeditor.com/docs/ckeditor4/latest/)</p>

###  

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# File - File picker

## File picker (file)

[![image-1590583561393.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/PvicRlvZqMMgTzUE-image-1590583561393.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/PvicRlvZqMMgTzUE-image-1590583561393.gif)

If you want to upload a file to the system, you can do so using the "file" field. Just add such a field to the form and you will be able to send any file.

<p class="callout info">If you want to send several files, you can add several fields.</p>

###  

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Text

## Text (text)

This field allows you to enter text.

[![image-1590585969531.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/z8GELlNz5Bbu5bnK-image-1590585969531.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/z8GELlNz5Bbu5bnK-image-1590585969531.gif)

```JSON
{
  "size": "s12 m6 offset-m3",
  "type": "text",
  "id": "SelectCity",
  "label": "City",
  "validate": [
    ""
  ],
  "icon": "location_city",
  "otrs_visible": "all",
  "hidden": false,
  "value": ""
},
```

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Textarea

## Textarea (textarea)

[![image-1590656661211.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/MdkWmQh3IgG9JMHg-image-1590656661211.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/MdkWmQh3IgG9JMHg-image-1590656661211.gif)

This field allows you to enter longer texts. Its size is determined dynamically based on the amount of text.

*Example:*

```align-left
{
  "size": "s12 m6 offset-m3",
  "type": "textarea",
  "id": "Textarea",
  "label": "Textarea",
  "validate": [
    ""
  ],
  "icon": "announcement",
  "otrs_visible": "all",
  "hidden": false,
  "value": ""
}
```

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Number

## Number (number)

This field takes only numbers, you can use the validator to set e.g. ranges.

[![image-1590586494962.gif](https://docs.intalioservices.com/uploads/images/gallery/2020-05/Hn14HxtVV0MvA0oQ-image-1590586494962.gif)](https://docs.intalioservices.com/uploads/images/gallery/2020-05/Hn14HxtVV0MvA0oQ-image-1590586494962.gif)

*Example:*

```JSON
{
  "size": "s12 m6 offset-m3",
  "type": "number",
  "id": "Number",
  "label": "Number",
  "validate": [
    ""
  ],
  "icon": "filter_1",
  "otrs_visible": "all",
  "hidden": false,
  "value": ""
}
```

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# AdditionalForm

## AdditionalForm (additionalForm) (1.2.2) (BETA)

This field allows you to dynamically load additional dynamic forms!

[![image-1636544496589.gif](https://docs.intalioservices.com/uploads/images/gallery/2021-11/KbjgOfFcDOgxBfqK-image-1636544496589.gif)](https://docs.intalioservices.com/uploads/images/gallery/2021-11/KbjgOfFcDOgxBfqK-image-1636544496589.gif)

*Example:*

```JSON
{
  "size": "s12 m12",
  "type": "additionalForm",
  "id": "additionalForm",
  "hidden": false,
  "value": "",
  "form_position": null,
  "additional_fields": null,
  "api_add_lang": false,
  "api_watcher": {
    "delay_api": "",
    "fields": [
      {
        "field_id": "additionalFormName",
        "api": "/static/FORMS/API/additionalForms/additionalForm[${value}].json"
      }
    ]
  }
}
```

### Field requires 2 configuration options:

#### additional\_fields

```json
{
  "form_position": 9,
  "additional_fields":
  [
    {
      "size": "s12 m12",
      "type": "text",
      "id": "additional_nazwaOperacji",
      "label": "Nazwa operacji",
      "icon": "person",
      "validate": [
        "required"
      ],
      "hidden": false,
      "value": ""
    },
    {
      "size": "s12 m12",
      "type": "text",
      "id": "additional_opisProblemu",
      "label": "Opis problemu",
      "icon": "subject",
      "validate": [
        "required"
      ],
      "hidden": false,
      "value": ""
    },
    {
      "size": "s12 m12",
      "type": "file",
      "id": "fileField",
      "label": "Załącznik",
      "validate": [
        ""
      ],
      "icon": "attach_file",
      "placeholder": "Załącznik...",
      "hidden": false
    },
    {
      "size": "s12 m12",
      "type": "file",
      "id": "fileField",
      "label": "Załącznik",
      "validate": [
        ""
      ],
      "icon": "attach_file",
      "placeholder": "Załącznik...",
      "hidden": false
    },
    {
      "size": "s12 m12",
      "type": "file",
      "id": "fileField",
      "label": "Załącznik",
      "validate": [
        ""
      ],
      "icon": "attach_file",
      "placeholder": "Załącznik...",
      "hidden": false
    }
  ]
}

```

#### form\_position

index from which new fields are to be added

<p class="callout info">The "additional\_form" mechanism is still in beta, so determining the order of the form may seem difficult.  
...TODO... </p>

### Use cases:

For example, if any selection is to load an additional form from another file, we can use api\_watcher and the additionalForm field.

<p class="callout warning">Dynamically loaded forms currently do not support API dependencies.</p>

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>

# Switch (>1.2.17)

## Switch (switch)

`beta`

This field allows you to set the value **true** or **false**. Allows advanced use when creating dynamic form logic.

[![image-1676548009966.gif](https://docs.intalioservices.com/uploads/images/gallery/2023-02/eu95Abw8NcAfz7g8-image-1676548009966.gif)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/eu95Abw8NcAfz7g8-image-1676548009966.gif)

```JSON
{
  "size": "s12 m5",
  "type": "switch",
  "id": "Switch",
  "hidden": false,
  "otrs_visible": "all",
  "order": 3,
  "tooltip": null,


  "icon": "assignment_ind",
  "icon_spacer": false,

  "label": null,
  "label_true": "Składam wniosek w <strong>czyimś</strong> imieniu",
  "label_false": "Składam wniosek w <strong>swoim</strong> imieniu",

  "validate": [],
  "disabled": false,
  "value": false
},
```

####  

## **Additional features**

### Icons

You can add your own icon, you can not add an icon, but still keep the spacing, this will make your form more aesthetically pleasing.

#####  

##### Default

Turning on the icon shows one icon.

```JSON
"icon": "assignment_ind",
```

[![image-1676548455230.png](https://docs.intalioservices.com/uploads/images/gallery/2023-02/scaled-1680-/9mdsSGGi5sraKZwd-image-1676548455230.png)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/9mdsSGGi5sraKZwd-image-1676548455230.png)

#####  

##### Without icon

Disabling the icon will not display any icon or spacer.

```JSON
"icon": null,
```

[![image-1676548496076.png](https://docs.intalioservices.com/uploads/images/gallery/2023-02/scaled-1680-/EkoCILlRd0IqcC7g-image-1676548496076.png)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/EkoCILlRd0IqcC7g-image-1676548496076.png)

#####  

##### Without icon, but with spacer

The system generates an automatic space in place of the icon.

```JSON
"icon": null,
"icon_spacer": true,
```

[![image-1676548540990.png](https://docs.intalioservices.com/uploads/images/gallery/2023-02/scaled-1680-/aIepyevANq3VZAVE-image-1676548540990.png)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/aIepyevANq3VZAVE-image-1676548540990.png)

### Labels

This field allows you to define labels more precisely. We can enable the default label (as in any other field), but we can also set the content of the label depending on the state of the field.

#####  

##### Default

This is the default setting and behaves like any other field.

[![image-1676549443291.gif](https://docs.intalioservices.com/uploads/images/gallery/2023-02/uoHiGroYl4VI7ZO4-image-1676549443291.gif)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/uoHiGroYl4VI7ZO4-image-1676549443291.gif)

```JSON
"label": "Składam wniosek w swoim imieniu",
```

##### Dependent

This setting will change the button's label depending on the current state.

[![image-1676549705853.gif](https://docs.intalioservices.com/uploads/images/gallery/2023-02/f3R0l658LXfU7uY7-image-1676549705853.gif)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/f3R0l658LXfU7uY7-image-1676549705853.gif)

<p class="callout info">This parameter also accepts most html tags, e.g. &lt;strong&gt;</p>

```JSON
"label": false,
"label_true": "Składam wniosek w <strong>czyimś</strong> imieniu",
"label_false": "Składam wniosek w <strong>swoim</strong> imieniu",
```

#####  

##### Styles

The color scheme of the button and its behavior can be customized in the configuration file found here: `/FORMS/styles/custom_style.css`

[![image-1676550224793.png](https://docs.intalioservices.com/uploads/images/gallery/2023-02/scaled-1680-/lPPBbiDZvuqtBLs9-image-1676550224793.png)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/lPPBbiDZvuqtBLs9-image-1676550224793.png)[![image-1676550176028.png](https://docs.intalioservices.com/uploads/images/gallery/2023-02/scaled-1680-/O3wItOJqJ0hPAfdS-image-1676550176028.png)](https://docs.intalioservices.com/uploads/images/gallery/2023-02/O3wItOJqJ0hPAfdS-image-1676550176028.png)

### The rest of the available parameters:

<p class="callout info">This field supports all parameters with ["Attributes available for each field".](https://docs.intalioservices.com/books/dynamic-forms---installation-and-administrators-guide/page/attributes-available-for-each-field "Attributes available for each field")</p>