# How to set up 3 button alerts

**URL:** <https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 14, 2021, 10:18pm UTC](https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177 "2021-01-14T22:18:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agx84240](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/agx84240/32/92952_2.png) [@agx84240](https://community.thunkable.com/u/agx84240)\
**Post date:** [January 14, 2021, 10:18pm UTC](https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177/1 "2021-01-14T22:18:52Z")

</div>

Hi everyone

I am creating an app and I want that when a button is clicked an alert appears with 3 options called “take”, “upload” and “no” and that when a button is clicked it takes a picture, uploads it or cancels the action.

I’ve done what you see in the picture and I’m very tangled

If you can answer with a picture it is better

 ![code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a8058f9730978c0e1412893a613127a6e1cd594b.png)

---

<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:** [January 14, 2021, 10:46pm UTC](https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177/2 "2021-01-14T22:46:11Z")

</div>

Try this

If button pressed = 1

---

<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:** [January 15, 2021, 5:27am UTC](https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177/3 "2021-01-15T05:27:51Z")

</div>

You don’t need to take a photo inside of each camera block. I would delete your three functions and simplify this a lot.

If the user clicks “take” or “upload” or “no”, then just take a photo or select a photo or do nothing. You don’t need ANOTHER “if” block inside of each of those. And the green Photo block contains the image itself. So I’m not sure that “if [Photo]” actually evaluates to true/false as you’re currently using it.

---

<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, 1:30pm UTC](https://community.thunkable.com/t/how-to-set-up-3-button-alerts/1050177/4 "2024-11-08T13:30:50Z")

</div>


