> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# useAlertDialogValidity()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/state/useAlertDialogValidity.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Reads the alerting dialog's validity: whether submit is enabled, the validation message to show, whether the parent widget is still valid, whether the measure may be changed, and whether the saved alert points at a widget whose insight is gone.

**Signature:**

```typescript
export declare function useAlertDialogValidity(): IAlertDialogValidity;
```
**Returns:**

[IAlertDialogValidity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdialogvalidity/index.md)
