# How to make button text editable by user

**URL:** <https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [March 24, 2020, 4:13pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940 "2020-03-24T16:13:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![donavan.naidoofnw](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@donavan.naidoofnw](https://community.thunkable.com/u/donavan.naidoofnw)\
**Post date:** [March 24, 2020, 4:13pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/1 "2020-03-24T16:13:54Z")

</div>

Hi, I want to use the long press button function to allow users to change the text of buttons. How do I do that?

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 24, 2020, 4:19pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/2 "2020-03-24T16:19:09Z")

</div>

Hi, @donavan.naidoofnw! 👋

When the user long-presses the button, a text-input with a small submit button would appear.  
When he/she writes into the text-input, and hits “submit” button, the main button’s text would change through these blocks -

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/273cb9f9c67fac997d01dea3dd0f7d0e133ae727.png)

Hope I helped you! 😄  
Good Luck! 👍

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![donavan.naidoofnw](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@donavan.naidoofnw](https://community.thunkable.com/u/donavan.naidoofnw)\
**Post date:** [March 24, 2020, 4:35pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/3 "2020-03-24T16:35:25Z")

</div>

Hi Kartik, thanks for this.

When I long press it comes up as undefined.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 24, 2020, 4:56pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/4 "2020-03-24T16:56:58Z")

</div>

> [@donavan.naidoofnw](#):
>
> it comes up as undefined.

Is you text input initially empty? `undefined` is the initial value when you add a new TextInput component.

You can use an IF block to handle these cases.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 24, 2020, 7:02pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/5 "2020-03-24T19:02:45Z")

</div>

Here are 3 methods by which you can change the text of a button

 ![Screen Shot 2020-03-24 at 2.48.03 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/20d0809b85fc3c13f3f642161f8e2b461df9673d.png)

[https://x.thunkable.com/copy/51b7a00685a4950f0f735dd842d51d2a](https://x.thunkable.com/copy/51b7a00685a4950f0f735dd842d51d2a)

---

<div class="post-metadata">

**Author:** ![donavan.naidoofnw](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@donavan.naidoofnw](https://community.thunkable.com/u/donavan.naidoofnw)\
**Post date:** [March 24, 2020, 7:28pm UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/6 "2020-03-24T19:28:26Z")

</div>

Thank you to everyone for such quick replies. I realised i must have a text input box or someplace to get the text to change the button text. I will try to apply all of your suggestions. Thank you so much once again. Very helpful.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 25, 2020, 1:48am UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/7 "2020-03-25T01:48:30Z")

</div>

Hi, @donavan.naidoofnw! 👋

Keep us posted, and don’t forget to mark the appropriate post as solution ✅ ! 👍

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/how-to-make-button-text-editable-by-user/532940/8 "2024-11-08T11:39:38Z")

</div>


