# FieldGoto Method

> Moves the input position to the start of a marked text field given by FieldType and FieldId, or a topic number, and scrolls it to the top of the visible text.

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

---

Sets the current input position to the beginning of the specified marked text field and scrolls the text so that this position is at the top of the control's visible text.

### Syntax

```vbscript
TXTextControl.FieldGoto FieldType, FieldId
```

### Parameters

| Parameter | Description |
|---|---|
| FieldType | Specifies the type of the marked text field. See the Constants section of the [FieldType](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldtype-property/llms-full.txt) property for valid values. |
| FieldId | Identifies the text field to which should be scrolled. It must be a valid field identifier. For fields of the type txFieldTopic this parameter can also be a valid topic number. |

### Return Value

If the field could be found the method returns True, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| FieldType | Integer |
| FieldId | Integer |
| Return value | Boolean |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [Programming Category: Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FieldEntered Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldentered-event/llms-full.txt)
- **Next:** [FieldHighlightColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightcolor-property/llms-full.txt)
