---
title: FormResult
slug: data-platform/connect-platform/app-sdk-api-reference-classes-formresult
docTags: 
createdAt: 2026-08-05T20:06:34.006Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / FormResult

# Class: `abstract` FormResult

Defined in: [src/app/lib/FormResult.ts:3](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L3)

## Extended by

- [`` `AuthorizationGrantResult` ``](docId\:wEDDCMO3HRrhMM89oSoRs)
- [`` `ChannelContentResult` ``](docId:-4WN2VzRPlNRSW-7Mm9ss)
- [`` `ChannelPreviewResult` ``](docId\:KzeFrLUbLROCsNq-4chig)
- [`` `ChannelTargetResult` ``](docId\:T4mAL8cSX3nDikAYr4IIy)
- [`` `LifecycleSettingsResult` ``](docId\:g5OsLnkbu9bF299fT_m6q)

## Constructors

### Constructor

:::BlockQuote
**new FormResult**(): `FormResult`
:::

### Returns

`FormResult`

## Properties

### errors

:::BlockQuote
`protected` **errors**: `object` = `{}`
:::

Defined in: [src/app/lib/FormResult.ts:4](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L4)

### Index Signature

\[`field`: `string`]: `string`\[]

***

### toasts

:::BlockQuote
`protected` **toasts**: `object`\[] = `[]`
:::

Defined in: [src/app/lib/FormResult.ts:5](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L5)

### intent

:::BlockQuote
**intent**: [`` `Intent` ``](docId:_9hudfE1-ZW7RrTE5XYot)
:::

### message

:::BlockQuote
**message**: `string`
:::

## Methods

### addToast()

:::BlockQuote
**addToast**(`intent`, `message`): `this`
:::

Defined in: [src/app/lib/FormResult.ts:13](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L13)

Display a toast to user, such as, "Successfully authenticated with `<Integration>`" or
"Authentication failed, please check your credentials and try again."

### Parameters

### intent

[`` `Intent` ``](docId:_9hudfE1-ZW7RrTE5XYot)

one of the supported intents that will affect how the toast is displayed

### message

`string`

to display in the toast

### Returns

`this`
