Skip to main content
Version: 4.62

setValueToUserSetting

Stores the provided value to a userSetting storage of the application.

note

UserSettings are stored within the device's persistent storage and will not be removed when the application is closed.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"key" (required)StringThe name of the user setting.null
"value" (required)StringThe value of the user setting.null

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: Set a value to a user setting

Show ExampleHide Example

Set the value for the specified user setting to the content of the textBox layer.

{
"type": "setValueToUserSetting",
"leadingDelimiter": "{$",
"trailingDelimiter": "$}",
"dynamicParams": {
"userSetting01Actions01Value01": {
"context": "form",
"field": "userSetting01Actions01Value01"
}
},
"params": {
"key": "userSetting01Actions01Value01",
"value": "{$userSetting01Actions01Value01$}"
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.