# Calculate value from text boxes

**URL:** https://community.thunkable.com/t/calculate-value-from-text-boxes/304576
**Category:** Questions about Thunkable X
**Created:** [November 6, 2019, 2:17am UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576 "2019-11-06T02:17:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)
#### Post date: [November 6, 2019, 2:17am UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/1 "2019-11-06T02:17:40Z")

</div>

There is any way to calculate a value from text box data entry and show it in another text box?

Regards,  
Alejandro Castrejon

---

<div class="post-metadata">

### Author: ![Daniel\_Coglitore](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Daniel\_Coglitore](https://community.thunkable.com/u/Daniel_Coglitore)
#### Post date: [November 6, 2019, 2:29am UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/2 "2019-11-06T02:29:32Z")

</div>

of course is very simple just read the documentation you’ll find it very easy

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [November 6, 2019, 8:19am UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/3 "2019-11-06T08:19:22Z")

</div>

How complex mathematical expression you want to use in the Text box? You can set an example of one of the most complex expressions?

---

<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: [November 6, 2019, 8:39am UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/4 "2019-11-06T08:39:01Z")

</div>

Here’s an example of calculating based on values from the TextInputs @itcare.desarrollosiw:

> [@add school grades](http://community.thunkable.com/t/add-school-grades/265841/4):
>
> hi @barbosadantasvpj, I tried this in my app and didn’t have any issues with it. The calculation was performed and the value was returned correctly. I’ve used the exact same blocks that you have (as far as I can see anyway!)

Is this what you’re looking for??

---

<div class="post-metadata">

### Author: ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)
#### Post date: [November 6, 2019, 4:06pm UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/5 "2019-11-06T16:06:58Z")

</div>

Im looking for a event o trigger when the user enter a Quantity in a textbox and unit price in another textbox automatically calculate the first one by the second one and show it in the Total textbox

¿Its that posible without press a button for the calculation?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [November 6, 2019, 4:21pm UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/6 "2019-11-06T16:21:57Z")

</div>

Use a timer.

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a4f6640123a06352ef4ee1f3688d69995c37d4c.png)

---

<div class="post-metadata">

### Author: ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)
#### Post date: [November 6, 2019, 5:47pm UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/7 "2019-11-06T17:47:50Z")

</div>

Thanks I thought that, by I’m want to avoid getting more problems, so i will add a [Calculate] button.

Thanks to all who spend time to help

Best regards  
Alejandro Castrejon

---

<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: [November 6, 2019, 6:34pm UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/8 "2019-11-06T18:34:38Z")

</div>

Here’s my approach @itcare.desarrollosiw:

 ![sum_items_in_list](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/819d7767bf3154d4dd4026f25f917ae3f8934ba4.png)

Pretty happy with how it turned out actually:

 ![sum_textboxes](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f67bdaedae3d76ce3e0231bfa1b7e77c37b3a390.gif)

---

<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, 12:08pm UTC](https://community.thunkable.com/t/calculate-value-from-text-boxes/304576/9 "2024-11-08T12:08:26Z")

</div>


