# Javascript: Signatures.submit Method

> Validates the form fields through Forms.validate() and submits the signed document. Returns `false` when validation fails, or `undefined` when a request failure is handled by the viewer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > Javascript: Signatures.submit Method
- **234 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signatures/submit-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signatures/submit-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signatures/submit-method/llms-full.txt

---

### Description

Validates the form fields through [Forms.validate()](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/forms/llms-full.txt) and submits the signed document. Returns `false` when validation fails, or `undefined` when a request failure is handled by the viewer.

### Syntax

```javascript
<Promise.<(unknown|false|undefined)>> Signatures.submit()
```

### Return Value

Validates the form fields through [Forms.validate()](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/forms/llms-full.txt) and submits the signed document. Returns `false` when validation fails, or `undefined` when a request failure is handled by the viewer.

### Examples

The following example demonstrates `signatures.submit` in a practical Document Viewer workflow. Submits the signed document.

```javascript
TXDocumentViewer.signatures.submit();
console.log("submit requested.");
```

---

## Nearby

- **Previous:** [Javascript: Signatures.storeSignature Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signatures/storesignature-method/llms-full.txt)
- **Next:** [SignatureSettings Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signaturesettings/llms-full.txt)
