# Scripting Functions getSelectedText() on Text Field component

**URL:** <https://forum.inductiveautomation.com/t/scripting-functions-getselectedtext-on-text-field-component/21696>\
**Category:** Ignition\
**Created:** [January 4, 2019, 9:56pm UTC](https://forum.inductiveautomation.com/t/scripting-functions-getselectedtext-on-text-field-component/21696 "2019-01-04T21:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LopezSilvanoE](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@LopezSilvanoE](https://forum.inductiveautomation.com/u/LopezSilvanoE)\
**Post date:** [January 4, 2019, 9:56pm UTC](https://forum.inductiveautomation.com/t/scripting-functions-getselectedtext-on-text-field-component/21696/1 "2019-01-04T21:56:46Z")

</div>

I hello I want to request your support to understand the syntax of how to use getSelectedText(), because we have the issue to monitor the input text, thanks for your time

Regards

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [January 4, 2019, 10:20pm UTC](https://forum.inductiveautomation.com/t/scripting-functions-getselectedtext-on-text-field-component/21696/2 "2019-01-04T22:20:30Z")

</div>

Not sure on the getSelectedText(), but you might want to check out the Formatted Text Field as well. You can use it to filter input and it may be able to help.
