form_modification
form_modification is the response of the form's change handler. It can be used to remove, clear, update, add_before, add_after, enable or disable fields in the form.
Parameter | Description | Datatype | Max Limit |
type | Type of response | - | - |
actions | Action that has to be performed | List | |
name | Name of the input | String | - |
Sample Code:
Copied{
"type" : "form_modification",
"actions" : [
{
"type" : "remove",
"name" : $inputname
},
{
"type" : "clear",
"name" : $inputname
},
{
"type" : "update",
"name" : $inputname,
"input" : $input
},
{
"type" : "add_before",
"name" : $inputname,
"input" : $input
},
{
"type" : "add_after",
"name" : $inputname,
"input" : $input
},
{
"type" : "enable",
"name" : $inputname
},
{
"type" : "disable",
"name" : $inputname
}
]
}