Echo Service Unit Tasks
The Echo Service Unit Tasks Form Component allows options from a list of Service Unit Tasks obtained from the Selected Interventions Echo API to be presented to the user to select from, during a form submission.
Settings
When adding the component to a page template, the following settings will need to be configured:
Name | Description |
---|---|
Configure Option Label if Service unit task is not in the list | Defaults to The desired service unit task is not listed . |
Exclude Task Type IDs | A comma separated list of Task Type IDs. If a task is found to use any of these Task Type IDs, it will be excluded from the list. |
Assisted Collection Data Type ID | The form will attempt to find an associated Assisted Collection attached to the user selected service unit task and store its value. |
Assisted Collection Field Name | The form will attempt to find an associated Assisted Collection attached to the user selected service unit task and store its value. |
Dictionary Entries
It is possible to override the label for any item in the select element of the Service Unit Tasks component using the Forms Dictionary functionality.
To do so, set the Label
value to the desired overwritten value, and add the existing value as returned from the Echo API to the Key(s)
values.
The original Value
of the selected task is required to retrieve details of that task, and so any text added to the Value
in the dictionary entry will be ignored.
Variables
On selecting a task from the select element, the following metadata for that task will be made available as variables:
- Service Task ID
- Task Type ID
- Task Type Name
- Label
- Service ID
- Service Name
- Task Indicator ID
- Assisted Collection