# Showing Alert Problem

**URL:** <https://community.thunkable.com/t/showing-alert-problem/40445>\
**Category:** Questions about Thunkable X\
**Created:** [August 10, 2018, 10:25pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445 "2018-08-10T22:25:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![compass1312](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@compass1312](https://community.thunkable.com/u/compass1312)\
**Post date:** [August 10, 2018, 10:26pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/1 "2018-08-10T22:26:00Z")

</div>

In the blocks below, I used Actech’s idea to check that all variables had valid values in them. I have also used alerts in other screens, but with this one I have to check whether one value is greater than another, and if true, show an alert. Have I done something wrong with these blocks?

![Alert_blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6cada7fc58bb3efb46ec34ff3e7e35352d53016c.png)

---

<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:** [August 11, 2018, 7:07am UTC](https://community.thunkable.com/t/showing-alert-problem/40445/2 "2018-08-11T07:07:09Z")

</div>

Place the “if” block inside the LocalStorage.callGet block, check the compared values, and look in the documentation for how you can call Alert.

---

<div class="post-metadata">

**Author:** ![compass1312](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@compass1312](https://community.thunkable.com/u/compass1312)\
**Post date:** [August 12, 2018, 10:36pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/3 "2018-08-12T22:36:30Z")

</div>

Thank you actech. I made the adjustment you suggested, and it still didn’t work. But I found the problem after 2 days. I simply hadn’t set the OK wording for the OK button. Very simple mistake, but don’t you think the developers would set the wording in the OK button to OK by default, and then let the user change it if needed? I have learned my lesson for today! 😀

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [August 12, 2018, 10:53pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/4 "2018-08-12T22:53:33Z")

</div>

> [@compass1312](#):
>
> don’t you think the developers would set the wording in the OK button to OK by default

That seems pretty reasonable! We’ll definitely consider that as a feature request.

-Mark

---

<div class="post-metadata">

**Author:** ![Luiz\_Costa](https://avatars.discourse-cdn.com/v4/letter/l/ecd19e/32.png) [@Luiz\_Costa](https://community.thunkable.com/u/Luiz_Costa)\
**Post date:** [August 17, 2018, 6:59pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/5 "2018-08-17T18:59:06Z")

</div>

Hello!  
i have a problem with the showing alert.

1. I created a screen for simple data entry. I put a button to validate the field fill and subsequent recording in the firebase. I have not created the save for firebase yet.

2. When I click on the button the message that returns me is not the message regarding the validation of the first field but an empty message. When I click the button again it returns the validation of the first field.

3. When I fill in the name field and click the button the validation returns that the field is empty. I click the button again, it validates the next field.

4. This situation occurs for all of the following validations. What is wrong?  
I am putting the code block and screens in the attachment.

 ![Alert%20(1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c35a98d294588440e4172ee676820c30ce7b5f49.jpeg) ![Alert%20(6)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/a/4a8340077bb296b3eb97f6df80a3d67d01f9cd48.jpeg) ![ErrorScreen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/1/b1c9d9514b56fecdf165798cc3f260f1cf9eb32d.png)

The message is in portugues

---

<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:** [August 18, 2018, 5:33am UTC](https://community.thunkable.com/t/showing-alert-problem/40445/6 "2018-08-18T05:33:39Z")

</div>

Hi,

The dialog does not work because you are using it incorrectly. You put the message in an expression that is triggered after the dialog is closed (“then do”), and you need to post the message before the dialog is displayed.

---

<div class="post-metadata">

**Author:** ![Luiz\_Costa](https://avatars.discourse-cdn.com/v4/letter/l/ecd19e/32.png) [@Luiz\_Costa](https://community.thunkable.com/u/Luiz_Costa)\
**Post date:** [August 18, 2018, 1:17pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/7 "2018-08-18T13:17:04Z")

</div>

> [@actech](#):
>
> (“then do”)

Actech, ok. I´ll changed this code. 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, 12:00pm UTC](https://community.thunkable.com/t/showing-alert-problem/40445/8 "2024-11-08T12:00:43Z")

</div>


