Form fields

The majority of form fields share the same generic properties and all share the same options for visibility conditions.

General properties

The general properties that are shared between all types of form fields are the following:

PropertyDescription
LabelThe name of the field that will appear on the rendered form
IDThe unique ID of the field
Required?Checking this box makes a field mandatory
Read-onlySets whether the field can be filled in by a form filler or not
ColspanThe number of columns a field spans
PlaceholderThe default value of the field

Note: Any exceptions to the following general properties are stated in the section specific to that field type. For example, the header field type does not have the Required? property.

Visibility conditions

Visibility conditions allow for form fields to be hidden or displayed depending upon the values of other fields or variables within that form. The visibility conditions button is displayed on the general properties tab of every field.

StepDescriptionOptions
Depends onThe field or variable that will be evaluatedA field or variable within the form
If it'sThe comparison operator between Depends on and Valueequal to, not equal to
ValueThe value, field or variable that the Depends on step is evaluating againstA field or variable within the form or a value
Next condition operatorThe operator for evaluating against further conditionsand, and not, or, or not

Note: Conditions are evaluated in the order they are defined in.

Form field types

The form field types available to use in Activiti Enterprise are the following:

Form fieldDescription
AmountAmount fields are for entering a value depicting currency
Attach fileAttach file fields are used so that form fillers can upload files with their submission
CheckboxCheckbox fields are boolean values
DateDate fields are for date type data
Display textDisplay text fields allow the form designer to display a line of fixed text to the form filler
Display valueDisplay value fields allow the form designer to display a value previously entered in the form
DropdownDropdown fields allow the form designer to define a set of options a form filler must choose from a a dropdown menu
GroupGroup fields allow the form filler to select groups that have access to the application
HeaderHeader fields are subtitle fields that can be used as section containers
HyperlinkHyperlink fields allow the form designer to expose a link that form fillers can click on
Multiline textMultiline text fields are for entering string data across multiple lines
NumberNumber fields are for entering integer data
OutcomeOutcomes can be added as options at the bottom of a form that a form filler needs to click on to complete the form
PeoplePeople fields allow the form filler to select users that have access to the application
Radio buttonsRadio button fields allow the form designer to define a set of options a form filler must choose from a set of radio buttons
TextText fields are for entering string data in a single line

Amount fields

Amount fields are for entering a value depicting currency.

The advanced properties for an amount field are the following:

PropertyDescription
Min valueSets the minimum value that can be entered into the field
Max valueSets the maximum value that can be entered into the field
CurrencySets the currency symbol for the field. For example: $, £ or
Enable decimalsChecking this box will allow for decimal places to be entered into the field

Attach file fields

Attach file fields are used so that form fillers can upload files with their submission.

Note: Attaching files to a form requires an Alfresco Content Services license so that the uploads can be stored.

The advanced properties for an attach file field are the following:

PropertyDescription
Allow multiple file attachmentsChecking this box will allow for more than one file to be uploaded
File sourceSets the location for where files can be uploaded from. Alfresco Content is from an ACS instance, whilst Local file is local to the form filler.

Checkbox fields

Checkbox fields are boolean values. They are either checked or unchecked.

Checkbox fields do not have the Placeholder property, nor do they have an advanced properties tab.

Date fields

Date fields are for date type data.

The advanced properties for a date field are the following:

PropertyDescription
Min dateSets the earliest date that can be entered into the field
Max dateSets the latest date that can be entered into the field
Date formatSets the format of how a date is entered into the field. For example: YYYY-MM-DD would display as 2001-10-01 for 1st October, 2001.

Display text fields

Display text fields allow the form designer to display a line of fixed text to the form filler. This text is uneditable by the filler themselves. The Text to display property is used to enter the text.

Display text fields not have the Read-only, Placeholder and Required? fields, nor do they have an advanced properties tab.

Display value fields

Display value fields allow the form designer to display a value previously entered in the form. The variables property is used to select a form variable to display.

Display value fields not have the Read-only, Placeholder and Required? fields, nor do they have an advanced properties tab.

Dropdown fields

Dropdown fields allow the form designer to define a set of options a form filler must choose from a list. This list can be a manually entered set of options or it can read from a REST service.

The advanced properties for a manual dropdown field allow for a set of options to be entered with a name and id for each option set. Selecting the radio next to an option will set it as the empty value. An empty value is taken to mean the field is empty if this option is selected when the form is filled in.

The advanced properties for a REST dropdown field are the following:

PropertyDescription
REST URLThe URL of the REST service
Path to array in JSON responseThe path to the JSON response. Enter . to use the full path
ID propertyThe ID of the REST service
Label propertyThe name of the REST service

Group fields

Group fields allow form fillers to select a single or multiple groups from the list of groups available in the application.

Group fields do not have a Placeholder property.

The advanced properties for a group field are the following:

PropertyDescription
ModeSets whether only a single, or multiple groups can be selected

Headers

Header fields are subtitle fields that can be used as section containers on a tab. They cannot be filled in by a form filler as they only display a subtitle.

Header fields have a Number of columns property rather than the Colspan property and they do not have the Read-only, Placeholder and Required? properties.

The advanced properties for a header field are the following:

PropertyDescription
Allow collapseChecking this box allows the header container to be collapsed with a + or - when the form is filled in
Collapse by defaultChecking this box will load the form with the header section already collapsed. This property is only available if the Allow collapse property is checked.

Hyperlink fields

Hyperlink fields allow the form designer to expose a link that form fillers can click on whilst they are filling out a form.

Hyperlink fields do not have the Read-only and Placeholder properties.

The advanced properties for a hyperlink field are the following:

PropertyDescription
Hyperlink URLThe URL that the field will launch when clicked
Display textThe text that is displayed for the URL. For example: Click here to view the expenses policy

Multiline text fields

Multiline text fields are for entering string data across multiple lines.

The advanced properties for a multiline text field are the following:

PropertyDescription
Min lengthSets the minimum character count for text that can be entered into the field including whitespace
Max lengthSets the maximum character count for text that can be entered into the field including whitespace
Regex patternA regular expression can be entered that will validate the text entered into the field. For example, a regular expression that matches four letters followed by four digits would be: /^[A-Za-z]{4}d{4}$/

Number fields

Number fields are for entering integer data.

The advanced properties for a number field are the following:

PropertyDescription
Min valueSets the minimum integer value that can be entered into the field
Max valueSets the maximum integer value that can be entered into the field

Outcomes

Outcomes can be added as options at the bottom of a form that a form filler needs to click on to complete the form, such as Agree or Disagree.

People fields

People fields allow form fillers to select a single or multiple users from the list of users that have access to the application.

People fields do not have a Placeholder property.

The advanced properties for a people field are the following:

PropertyDescription
ModeSets whether only a single, or multiple users can be selected

Radio buttons

Radio button fields allow the form designer to define a set of options a form filler must choose from. This list can be a manually entered set of options or it can read from a REST service.

The advanced properties for a manual radio button field are allow for a set of options to be entered with a name and id for each option set. Selecting the radio next to an option will set it as the default value.

The advanced properties for a REST radio button field are the following:

PropertyDescription
REST URLThe URL of the REST service
Path to array in JSON responseThe path to the JSON response. Enter . to use the full path
ID propertyThe ID of the REST service
Label propertyThe name of the REST service

Text fields

Text fields are for entering string data in a single line.

The advanced properties for a text field are the following:

PropertyDescription
Min lengthSets the minimum character count for text that can be entered into the field including whitespace
Max lengthSets the maximum character count for text that can be entered into the field including whitespace
Regex patternA regular expression can be entered that will validate the text entered into the field. For example, a regular expression that matches four letters followed by four digits would be: /^[A-Za-z]{4}d{4}$/
Input maskSet the format for how data may be entered into the field. For example (00) 0000-0000 for a mandatory 8-digit phone number and 2-digit area code will not allow for letters to be entered at all
ReversedThis reverses the entry for an Input mask and reads the text from right to left instead
Input mask placeholderThe placeholder to demonstrate the format of an Input mask. For example (__) ____-____ in the phone number example

© 2023 Alfresco Software, Inc. All Rights Reserved.