Skip to content

Commit

Permalink
TinaCMS content update
Browse files Browse the repository at this point in the history
Co-authored-by: Kelly Davis <[email protected]>
  • Loading branch information
tina-cloud-app[bot] and kldavis4 authored Feb 1, 2025
1 parent 28107d7 commit 871183c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/docs/extending-tina/before-submit.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
---
id: /docs/extending-tina/before-submit

title: Before Submit Function
last_edited: '2025-02-01T17:00:46.660Z'
next: ''
previous: content/docs/extending-tina/filename-customization.mdx
---

The before submit function allows you to run a function on the frontend before the form is submitted to the backend and optionally modify the values of a document.

<recipeBlock
title="Test Code"
description="tesst"
code="{
&#x22;foo&#x22;: &#x22;bar&#x22;
}"
/>

## Definition

```ts
Expand Down

0 comments on commit 871183c

Please sign in to comment.