---
title: text
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/keyboard/1627359-text
---

# text

The text inside a search or text field.

## Declaration

```data
attribute String text;
```

## Discussion

Discussion Use this attribute to set or get the text in a searchField or textField element.

## See Also

### Setting and Retrieving Text

- [onTextChange](tvmljs/keyboard/1627355-ontextchange.md)
