Before Submit Function
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.
Definition
Querying content
Content can be queried from within beforeSubmit using the cms argument. The generated client is not available in the config, so queries are made by passing a raw GraphQL query string to cms.api.tina.request().