Skip to main content

Form Validate Action

The StacFormValidateAction class is used to validate a form in Stac applications.

Properties​

PropertyTypeDescription
isValidMap<String, dynamic>The action to perform if the form is valid.
isNotValidMap<String, dynamic>The action to perform if the form is not valid.

Example JSON​

Form Validate Action JSON​

{
"actionType": "validateForm",
"isValid": {
"actionType": "showDialog",
"widget": {
"type": "text",
"data": "Form is valid!"
}
},
"isNotValid": {
"actionType": "showDialog",
"widget": {
"type": "text",
"data": "Form is not valid!"
}
}
}