# SignatureFieldCollection Object

> Contains all signature fields of a Text Control document or part of the document.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 31.0
- **Path:** DS Server > Reference > JavaScript API > SignatureFieldCollection Object
- **989 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/llms-full.txt

---

### Description

Contains all [signature fields](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefield/llms-full.txt) of a Text Control document or part of the document.

### Syntax

```javascript
SignatureFieldCollection
```

### Examples

The following example demonstrates `SignatureFieldCollection` in a practical document-editing workflow. It contains all signature fields of a Text Control document or part of the document.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.signatureFields.getItem(
    function(signatureField) {
        if (!signatureField) {
            console.warn("No signature field was returned.");
            return;
        }
        
        console.log("get item result:", signatureField);
    },
    onTxError,
    25
);
```

---

## In This Section

- [Javascript: SignatureFieldCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addanchored-method/llms-full.txt): Creates and inserts a new signature field which is anchored to the specified text position. It has the specified horizontal alignment and a textflow which is given through the insertionMode parameter. Anchored text frames are moved with the text.
- [Javascript: SignatureFieldCollection.addAnchoredAtLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addanchoredatlocation-method/llms-full.txt): Inserts a new signature field which is anchored to the specified text position. It has the specified location relative to the paragraph it is anchored to and a textflow which is given through the insertionMode parameter. Anchored signature fields are moved with the text.
- [Javascript: SignatureFieldCollection.addAtFixedPositionInDocument Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addatfixedpositionindocument-method/llms-full.txt): Creates and inserts a new signature field which has a fixed geometrical position in the document. This position is specified through a location relative to the top left corner of the complete document. All gaps between the pages must be included.
- [Javascript: SignatureFieldCollection.addAtFixedPositionOnPage Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addatfixedpositiononpage-method/llms-full.txt): Inserts a new image which has a fixed geometrical position in the document. This position is specified through a page number and a location on this page.
- [Javascript: SignatureFieldCollection.addInline Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addinline-method/llms-full.txt): Inserts a signature field inline, which means that it is treated in the text like a single character. The signature field is inserted at the specified text input position.
- [Javascript: SignatureFieldCollection.addWithMouse Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addwithmouse-method/llms-full.txt): Inserts a signature field with the built-in mouse interface. The signature field's size is determined through the end-user. A cross cursor indicates where the signature field can be inserted. Changing the document aborts the insertion process.
- [Javascript: SignatureFieldCollection.getItem Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/getitem-method/llms-full.txt): Gets the signature field selected by the user or the signature field with the specified identifier.
- [Javascript: SignatureFieldCollection.getItemByName Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/getitembyname-method/llms-full.txt): Gets the signature field with the specified name.
- [Javascript: SignatureFieldCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/remove-method/llms-full.txt): Removes a signature field from a Text Control document.

---

## Nearby

- **Previous:** [SignatureFieldCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcallback/llms-full.txt)
- **Next:** [Javascript: SignatureFieldCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/addanchored-method/llms-full.txt)
