Hooks allow you to add expression based logic in various places places in Rhythm. The most common place for hooks are in web forms, which are configurable multi-step forms that are used throughout the Rhythm platform. Expressions can be used to represent complex logic, often more complicated than can be represented using the rules editor. Underneath the covers, the expr-eval library is used for security expression evaluation, and full documentation can be seen here:
https://github.com/silentmatt/expr-eval
For hooks, the following objects are available during expression parsing:
{
webHookResponse, // if a web hook response is available,
context: {
definition, // the form definition,
result: {
title: '' // the call out title - you can set this
value: '' // the value to be in the call out - you can set this
style: '' // the style for the call out - you can set this
}
}
};
Functions
Check out the common functions that are available across all expression.
Comments
0 comments
Article is closed for comments.