<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/textfield",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "textField"
}
-->

# textField

Displays a text field the user can interact with.

## Overview

The `textField` element provides a field for users to enter text. This element is
commonly used inside of other elements. Here’s an example of a text field prepopulated
with an email as a guide to the user.

```xml
<textField>tclark@example.com</textField>
```

### Contained In

- [formTemplate](/documentation/TVML/formtemplate)

## Topics

### Valid TVML Attributes

[binding](/documentation/TVML/binding)

Associates information in a data item with an element.

[keyboardType](/documentation/TVML/keyboardtype)

Specifies the keyboard to display.

[prototype](/documentation/TVML/prototype)

Associates a data item type with an element.

[secure](/documentation/TVML/secure)

Hides typed text.

[theme](/documentation/TVML/theme)

Sets the color scheme for an element.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)