Skip to main content

clearFormValue

Deletes a value from a form (View data of specified form).

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"field" (required)StringThe name of the field to be deleted.null
"form"StringThe name of the specified form in which the field has to be deleted. If no form is specified, the form of the active view is used.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: Delete a value from a form

Goal: Create a clearFormValue action clearing the name field in the contact form.

To achieve this the following code can be used:

{
"type": "clearFormValue",
"params": {
"field": "name",
"form": "contact"
}
}

The field and form parameters specify which value is to be deleted from which form.

Result:

A clearFormValue action has been created.