Skip to main content
Version: 4.55

setParams

Sets values to the event parameters.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Create a setParams action with assigned static value

Goal: Create a parameter named "birthdate" and assing it a static value.

Key has to be assigned within the params object of the action.

{
"type": "setParams",
"params": {
"birthday": {
"value": "29.04.1999"
}
}
}

Result:

The parameter "birthday" has been set with the value "29.04.1999"

Example 2: Create a setParams action with assigned dynamic value

Goal: Create a parameter named "startDate" and assing it a named form value.

Key has to be assigned within the params object of the action.

{
"type": "setParams",
"params": {
"startDate": {
"context": "namedForm",
"field": "timeFrame:pickedStartDate"
}
}
}

Result:

The parameter "startDate" has been set with the value of the named form "timeFrame" of the field "pickedStartDate"