# FieldNext Method

> Returns the identifier of the marked text field after the given one to enumerate fields, filtered by FieldGroup flags for changeable, deleteable or field types.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FieldNext Method
- **634 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldnext-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldnext-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldnext-method/llms-full.txt

---

This method returns the identifier of the marked text field that follows the specified field in the Text Control's current text. It can be used to find the next field in the text or to enumerate all fields.

### Syntax

```vbscript
TXTextControl.FieldNext FieldId, FieldGroup
```

### Parameters

| Parameter | Description |
|---|---|
| FieldId | Specifies a field identifier. If this parameter is zero, the first field's identifier is returned. |
| FieldGroup | This parameter can be the sum of one or more constants used to separate fields with certain attributes. Valid values are described in the following list. If FieldGroup is zero, the method enumerates all fields. |

#### FieldGroup

| Value | Description |
|---|---|
| 0 | Returns the identifiers of all fields. |
| &H1 | Returns only identifiers of fields which are both changeable and deleteable. |
| &H2 | Returns only identifiers of fields which are unchangeable. |
| &H4 | Returns only identifiers of fields which are undeleteable. |
| &H200 | Returns only identifiers of fields which have the type txFieldExternalLink. |
| &H400 | Returns only identifiers of fields which have the type txFieldInternalLink. |
| &H800 | Returns only identifiers of fields which have the type txFieldPageNumber. |
| &H1000 | Returns only identifiers of fields which have the type txFieldHighlight. |
| &H2000 | Returns only identifiers of fields which have the type txFieldTopic. |
| &H8000 | Returns only identifiers of fields which have the type txFieldMSWord. |
| &H10000 | Returns only identifiers of fields which have the type txFieldHighEdit. |
| &H20000 | Returns only identifiers of fields which have the type txFieldAllPages. |
| &H40000 | Returns only identifiers of fields which have the type txFieldCheckBox. |
| &H80000 | Returns only identifiers of fields which have the type txFieldComboBox. |
| &H100000 | Returns only identifiers of fields which have the type txFieldFormText. |
| &H200000 | Returns only identifiers of fields which have the type txFieldDate. |

### Data Types

| Name | Data type |
|---|---|
| FieldId | Integer |
| FieldGroup | Long |
| Return value | Integer |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [FieldChangeable Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldchangeable-property/llms-full.txt)
- [FieldDeleteable Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddeleteable-property/llms-full.txt)
- [FieldType Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldtype-property/llms-full.txt)
- [Programming Category: Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FieldLinkTargetMarkers Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldlinktargetmarkers-property/llms-full.txt)
- **Next:** [FieldPosX Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldposx-property/llms-full.txt)
