# Text box in PGM

**URL:** https://forum.foleysfinest.com/t/text-box-in-pgm/224
**Category:** PluginGuiMagic
**Created:** [29 August 2025 14:37 UTC](https://forum.foleysfinest.com/t/text-box-in-pgm/224 "2025-08-29T14:37:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SGSG50](https://forum.foleysfinest.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@SGSG50](https://forum.foleysfinest.com/u/SGSG50)
#### Post date: [29 August 2025 14:37 UTC](https://forum.foleysfinest.com/t/text-box-in-pgm/224/1 "2025-08-29T14:37:50Z")

</div>

Hi All/Daniel, I am using PGM for my UI and one of my requirements is to have a text box for user to provide an input, which I want to parse it back to my code for further analysis. I cannot see a textbox in the PGM editor. Is there a way we can handle this?

---

<div class="post-metadata">

### Author: ![daniel](https://forum.foleysfinest.com/user_avatar/forum.foleysfinest.com/daniel/32/5_2.png) [@daniel](https://forum.foleysfinest.com/u/daniel)
#### Post date: [8 September 2025 09:19 UTC](https://forum.foleysfinest.com/t/text-box-in-pgm/224/2 "2025-09-08T09:19:55Z")

</div>

Sorry for the late reply:

The Label can be set to editable, so it acts as editor.

You can access the value via the `magicState.getPropertyAsValue(“foo:bar”)` call.

> **[foleys\_gui\_magic: MagicGUIState Class Reference](https://foleysfinest.com/PluginGuiMagic/classfoleys_1_1MagicGUIState.html#a7f0d5fa3164aae0ad944d3543d7cbbee)**

In the label you set the same path as value and it will be updated whenever the user entered some text.
