FSM Mobile Template Tags
A template is an expression enclosed in ${ ... }. FSM resolves the contents of a template server-side and substitutes the result into the configuration before the applicable mobile resource, article, element, filter, or default is used.
|
Context |
Description |
Example |
|---|---|---|
|
event |
References the current event map. |
${ event.date } |
|
user |
References the current mobile user. |
${ user.internalid } |
|
options |
References values available to the current resource or element. |
${ options.asset } |
A template can contain a JavaScript expression. Use an expression to select a value from the available context or return null when a value should not be provided.
"value": "${ event.type == 3 ? event.appointmentDateTime : null }"
This expression returns the appointmentDateTime event-map field when the event type is 3; otherwise, it returns null.