# Using TextBox component, how to output user input?

**URL:** <https://discourse.psychopy.org/t/using-textbox-component-how-to-output-user-input/23696>\
**Category:** Builder\
**Created:** [June 22, 2021, 4:10pm UTC](https://discourse.psychopy.org/t/using-textbox-component-how-to-output-user-input/23696 "2021-06-22T16:10:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![judgeLionthink](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/judgelionthink/32/15677_2.png) [@judgeLionthink](https://discourse.psychopy.org/u/judgeLionthink)\
**Post date:** [June 22, 2021, 4:10pm UTC](https://discourse.psychopy.org/t/using-textbox-component-how-to-output-user-input/23696/1 "2021-06-22T16:10:19Z")

</div>

I can’t find a solution to this one, yet it seems extremely simple.

Using the TextBox component (Routine1) I ask the user to write something. Then, (Routine2) I simply want to display what the user wrote on screen. However, I can’t find where or how to access what the user inputted in the TextBox.

Please help.

EDIT: Using the version v2021.1.4

---

<div class="post-metadata">

**Author:** ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)\
**Post date:** [June 24, 2021, 8:35am UTC](https://discourse.psychopy.org/t/using-textbox-component-how-to-output-user-input/23696/2 "2021-06-24T08:35:40Z")

</div>

The text of a textbox can be accessed by `myTextbox.text` (where `myTextbox` is whatever you called your textbox), but keep in mind that at the beginning of its routine the text will be reset to its starting value, so you may want to make a :variable: Variable component whose End Routine value is `myTextbox.text` and refer to that variable instead.

---

<div class="post-metadata">

**Author:** ![judgeLionthink](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/judgelionthink/32/15677_2.png) [@judgeLionthink](https://discourse.psychopy.org/u/judgeLionthink)\
**Post date:** [June 30, 2021, 6:22pm UTC](https://discourse.psychopy.org/t/using-textbox-component-how-to-output-user-input/23696/3 "2021-06-30T18:22:19Z")

</div>

Thank you so much!
