Element Control

Element Control

The Form Designer’s Element control is used in order to define read/write access to specific fields of the form and also specify if a field is mandatory.

This page describes the Element Control Tab as well as the different Element Control settings for each Context.


Element Control settings

Introduction

In order to define read and write rights for specific fields or containers, the element control context can be used. Setting fields to mandatory is also possible there.

The context is the current setting under which the Form is show. It can either be:

  1. on starting a new instance

  2. after selecting a specific task/activity

  3. after selecting the instance

On each context, the most specific Element Control of each field/container is detected and then shown.

There is a variety of options for defining the Element Control - they are described further below.

image-20250416-073702.png

Element controls can be set to containers (rows, tabs) and to fields. Fields can inherit their element control from containers. Containers and fields can inherit their element control from the Form default (for all processes).

 

Element Control Context

The different contexts are described in the table below.

Context

Description

Context

Description

Form default (for all processes)

This is the only context not bound to a specific field or container. It is the default for all fields which do not have an Element Control set (directly or inherited).

Element default

The Element default defines how the field behaves generally if there is no more specific setting (for a role, swimlane, task, etc.) and also how it behaves on Instance view.

Workflow name (also valid for Process Instance View) DEPRECATED

This context is deprecated and will be removed.

Workflow name → Role: 'owner'

Users which are Owners for the current workflow will see this context.

Workflow name → Role: 'viewer'

This context is shown for the External Form view (no login required)

Workflow name → Status: Process Instance Start

This context will be shown on starting a new Process Instance within TIM. If it is not set, the Element default is shown.

Workflow name → Status: Webform Start

This context will be shown on starting a new Process Instance via Webform. If it is not set, the Status: Process Instance Start will be shown.

Workflow nameSwimlane A

For all tasks within Swimlane A, this context is shown.

Workflow nameSwimlane AActivity A

For all tasks within Activity A, this context is shown.

Workflow nameSwimlane B

For all tasks within Swimlane B, this context is shown.

Workflow nameSwimlane BActivtity B

For all tasks within Activity B, this context is shown.

Hierarchy of Contexts

This list shows the Hierarchy of the Context Execution. It starts with most unspecific and ends with the most specific. The higher the number, the higher its priority.

  1. Form default (for all processes)

  2. Inherited element control from container

  3. Element default

  4. Workflow DEPRECATED

  5. Swimlane

  6. Activity

  7. Status: Process Instance Start

  8. Status: Webform Start

  9. Form Rules (Rules can also manipulate the Element Control)

  10. Role: Owner

  11. Role: Viewer

  12. Status: Ended (Completed tasks and completed instances are always read only)

 

How to add an Element Control

Select an element and go to the third tab on the right panel. This will allow you to add another Element Control and also see and select all existing ones on the bottom.

image-20250416-074251.png

 

 

Example

For our example, we consider a very basic workflow with two swimlanes and three Activities.

processimage-20250417-125342.png

To get started, we create a new form and add a container with six text fields. The element control settings are done as defined in the text field labels.

image-20250416-090030.png

These settings result in this form:

image-20250416-090015.png

Now change the Form default (for all processes) which sets all fields to required which are not having a specific element control setting in the current context:

image-20250416-091236.png

The first and the last element are now set to required as they do not have another element control:

image-20250416-091528.png

Now we add a Element Default to the container which sets all fields to visible only if there is no other element control in this context.

image-20250416-090225.png

The Element Default of the container overrules the Form Default (for all Processes)as it is more specific. The first and last element is now not writeable anymore.

image-20250416-091750.png

If we now add another container and a new text field without an Element control, the Form Default (for all Processes) will be the most powerful one.

image-20250416-092841.png

Thus the new field is set to required:

image-20250416-092755.png

As we do not have defined a specific Element control for Process instance start, the Process instance view for a started instance behaves the same.

image-20250423-145236.png

We will now add two fields, one for each Swimlane, to the second container. By default, they would be shown as defined in Form Default (for all Processes).

image-20250417-134245.png

In our case, we want the field Swimlane A to be writeable in Activity A1, but in all other tasks of the Swimlane it should be read-only. In order to achieve this, we select the Context Workflow Name -> Swimlane A -> Activity A1 and then click on the new field. We add an Element Control and set it to writeable:

image-20250417-142758.png

Then we select the Context Workflow Name -> Swimlane A and add another Element Control and set it to read-only:

image-20250417-143315.png

For the other field, we want to have it required on Instance Start and then only make it visible in Swimlane B. In order to achieve this, we have to set three Contexts. First one is Element Default to hide it generally:

image-20250417-140816.png

Second one is Workflow Name -> Status: Process instance start to have it mandatory there:

image-20250417-141029.png

And third one is Workflow Name -> Swimlane B to make it visible in all tasks there:

image-20250417-141112.png

If we now save and publish the workflow, we get following results.

On Instance Start, both fields are required. Field Swimlane A is required because there is no Context that is more specific than the Form default (see above). Field Swimlane B is required as defined above.

image-20250417-141516.png

By selecting the started Instance, we see in the Instance view that field Swimlane A is still required. This is still because of the Form default. Field Swimlane B is not shown as defined in the Element default.

image-20250417-141946.png

If we select the task Activity A1, field Swimlane A is not required anymore but writeable (as defined in the specific context). Field Swimlane B is still not shown.

image-20250417-143713.png

If we now complete the first task and select the second task Activity A2, field Swimlane A is not required anymore and also not writeable (there is no specific context for Activity A2 so the one from Swimlane A is taken). Field Swimlane B is still not shown.

image-20250423-125139.png

If we now complete the second task and select task Activity B, field Swimlane A is required again (there is no specific context for Activity B so the Form default is taken). Field Swimlane B is read only as defined in the Workflow Name -> Swimlane B context.

image-20250423-125845.png

Element Control Tab

Within the 'Element Control’ tab the user can see all element controls created in the 'Designer' tab.

image-20250423-130344.png

 

Reference

Attribute

Description

Reference

Attribute

Description

1

Element control settings

For each element control setting the context, the field name, the element type, the superordinant container (if existing) and the control options are displayed here. The options (visible, writeable, required) can be changed by clicking on the respective checkbox. By clicking the trash can on the right hand side the element control setting can be deleted.