Custom fields and Status lists
Custom fields
You can include the information from Custom fields in a template. These can be accessed through the {{ CustomFields }} placeholder. This placeholder allows you to iterate through a list of all Custom fields on the card.
Each Custom Field has two properties:
- Key
- Value
The property Key contains the Key of the Custom field. The Value property contains the value. What is in Value depends on the type of the Custom field.
Type | Value |
|---|---|
Text | A text value |
Text area | A (long) text value (condider using the br helper) |
Numeric | A number (integer) |
Date picker | A date |
Date/Time picker | A date wih a time |
Checkbox | true or false (consider using the #if helper) |
Financial | A financial number |
Select | A list of texts, zero or one value |
MultiSelect | A list of texts, zero or multiple value |
To find the value for one specific Custom Field, use the #find_on_keyhelper.
<!-- text value -->
<div>
{{#find_on_key CustomFields 'accreditation-partner-name' }}
{{Value}}
{{/find_on_key}}
</div>
<!-- long text value -->
<div>
{{#find_on_key CustomFields 'accreditation-guest-bio' }}
{br {Value}}
{{/find_on_key}}
</div>
<!-- date value -->
<div>
{{#find_on_key CustomFields 'accreditation-first-visit-festival' }}
{{format_value Value 'dd MM yy'}}.
{{/find_on_key}}
</div>
<!-- single select value -->
<div>
{{#find_on_key CustomFields 'accreditation-gender' }}
{{#each Value}}
{{this}}
{{/each}}
{{/find_on_key}}
</div>
<!-- multi select value -->
<div>
{{#find_on_key CustomFields 'accreditation-competencies' }}
{{#each Value}}
{{this}}{{#unless @last}}, {{/unless}}
{{/each}}
{{/find_on_key}}
</div>Status list values
You can include the selected values of status lists in a template. These can be accessed through the {{ StatusValues}} placeholder. This placeholder allows you to iterate through a list of all Status lists on the card (in the header or in a section.
Each Status list has three properties:
- Key
- Value
The property Key contains the key of the Status list. Valid values are: header1, header2, header3 or the key of a section in which the status list is placed, e.g. general. The Value property contains information of the checked status list boxes.
| |
|---|---|
{{Value.All}} | A list of all checked status list boxes |
{{Value.Highest}} | The highest box checked |
{{Value.Latest}} | The most recent checked box |
To find the value for one specific Status list, use the #find_on_keyhelper.
<!-- to find all available status lists -->
<div>
{{#each StatusValues }}
{{Key}}<br/>
{{/each}}
</div>
<!-- all checked boxes -->
<div>
{{#find_on_key StatusValues 'header1' }}
{{#each Value.All}}
<b>{{Label}}</b> {{CheckedBy}} - {{format_value CheckedOn 'dd MM yy HH:mm'}}<br/>
{{/each}}
{{/find_on_key}}
</div>
<!-- highest checked box -->
<div>
{{#find_on_key StatusValues 'header1' }}
{{#with Value.Highest}}
<b>{{Label}}</b> {{CheckedBy}} - {{format_value CheckedOn 'dd MM yy HH:mm'}}<br/>
{{/with}}
{{/find_on_key}}
</div>
<!-- most recent checked box -->
<div>
{{#find_on_key StatusValues 'header1' }}
{{#with Value.Latest}}
<b>{{Label}}</b> {{CheckedBy}} - {{format_value CheckedOn 'dd MM yy HH:mm'}}<br/>
{{/with}}
{{/find_on_key}}
</div>