# FormulaFieldDefinition

> Type reference for FormulaFieldDefinition in the Rippling SDK, including its public shape and related types.

Type-level shape produced by the formula helpers.

## Type definition

```
export interface FormulaFieldDefinition<TFormulaKind extends FormulaFieldKind = FormulaFieldKind, TValue = FormulaValueByKind[TFormulaKind], TSectionKey extends string | undefined = string | undefined> extends FieldDefinitionBase<TFormulaKind, TValue, false, false, TSectionKey> {
    readonly formula: string;
    readonly maxLength?: TFormulaKind extends 'formula-text' ? number : never;
}
```

## Related types

-   [FormulaFieldKind](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FormulaFieldKind-b34cf323)
-   [FormulaValueByKind](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FormulaValueByKind-a9cb85ca)
-   [FieldDefinitionBase](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldDefinitionBase-16c7690e)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FormulaFieldDefinition-05a3a259

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
