# When players input a value, the button will be able to click

**URL:** https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152
**Category:** Questions about Thunkable X
**Created:** [September 13, 2023, 2:47am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152 "2023-09-13T02:47:15Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![AkiTetsuya](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/akitetsuya/32/160803_2.png) [@AkiTetsuya](https://community.thunkable.com/u/AkiTetsuya)
#### Post date: [September 13, 2023, 2:47am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/1 "2023-09-13T02:47:15Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/daa017545a8687f6fdf91fe7d34a36a02cb58f6d.png)  
why won’t this work?

---

<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: [September 13, 2023, 3:36am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/2 "2023-09-13T03:36:24Z")

</div>

Hi, what Event _yellow_ block is this code in? Also, just so know know, if the text\_input is empty the button wont work. else it will.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [September 13, 2023, 3:37am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/3 "2023-09-13T03:37:18Z")

</div>

Is Text\_Input5 empty? Those blocks will definitely work. Is there anything above the `if` block that is preventing that part of the code from firing?

Can you share a link to the project?

---

<div class="post-metadata">

### Author: ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)
#### Post date: [September 13, 2023, 3:38am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/4 "2023-09-13T03:38:20Z")

</div>

Show the whole block setup please. It should all be put within the ‘when text\_input5 changes’. If that doesnt work you can always set a timer that checks the text block every second and then if it is not empty set the block enabled to true. Last thing you could do if you didnt want to use a timer is check if the length of text in the text block is \>0.

_EDIT_ looks like we all replied at the same time. How funny is that LOL.

---

<div class="post-metadata">

### Author: ![AkiTetsuya](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/akitetsuya/32/160803_2.png) [@AkiTetsuya](https://community.thunkable.com/u/AkiTetsuya)
#### Post date: [September 13, 2023, 8:12am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/5 "2023-09-13T08:12:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![AkiTetsuya](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/akitetsuya/32/160803_2.png) [@AkiTetsuya](https://community.thunkable.com/u/AkiTetsuya)
#### Post date: [September 13, 2023, 8:17am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/6 "2023-09-13T08:17:23Z")

</div>

![Screenshot_20230913_161546_Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c34c37af82ff355657aee070a399da4b848fa12c.jpeg)  
When I try in 50 for the code nothing happen, the button still does not be press

---

<div class="post-metadata">

### Author: ![bun520foreverx](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bun520foreverx](https://community.thunkable.com/u/bun520foreverx)
#### Post date: [September 13, 2023, 9:26am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/7 "2023-09-13T09:26:32Z")

</div>

This code is in “When Screen2 Open”, Text\_Input5.Text default is empty, so Button2.Disabled is true.  
I think you can use “When Text\_Input5.Changes” to change Button2.Disabled state.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/4/446479b3734e69afc56f17ef12ac7f3bfe9ae889.png)

---

<div class="post-metadata">

### Author: ![AkiTetsuya](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/akitetsuya/32/160803_2.png) [@AkiTetsuya](https://community.thunkable.com/u/AkiTetsuya)
#### Post date: [September 13, 2023, 9:31am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/8 "2023-09-13T09:31:49Z")

</div>

Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [December 12, 2023, 9:32am UTC](https://community.thunkable.com/t/when-players-input-a-value-the-button-will-be-able-to-click/2592152/9 "2023-12-12T09:32:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
