> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Form Validate Action

> Documentation for Form Validate Action

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

## Properties

| Property   | Type         | Description                                     |
| ---------- | ------------ | ----------------------------------------------- |
| isValid    | `StacAction` | The action to perform if the form is valid.     |
| isNotValid | `StacAction` | The action to perform if the form is not valid. |

## Example

<CodeGroup>
  ```dart Dart theme={null}
  StacFormValidateAction(
    isValid: StacDialogAction(
      widget: StacText(data: 'Form is valid!'),
    ),
    isNotValid: StacDialogAction(
      widget: StacText(data: 'Form is not valid!'),
    ),
  )
  ```

  ```json JSON theme={null}
  {
    "actionType": "validateForm",
    "isValid": {
      "actionType": "showDialog",
      "widget": {
        "type": "text",
        "data": "Form is valid!"
      }
    },
    "isNotValid": {
      "actionType": "showDialog",
      "widget": {
        "type": "text",
        "data": "Form is not valid!"
      }
    }
  }
  ```
</CodeGroup>
