# Coding IF ELSE message

**URL:** <https://community.glideapps.com/t/coding-if-else-message/39943>\
**Category:** Ask for Help\
**Created:** [March 22, 2022, 11:09am UTC](https://community.glideapps.com/t/coding-if-else-message/39943 "2022-03-22T11:09:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)\
**Post date:** [March 22, 2022, 11:09am UTC](https://community.glideapps.com/t/coding-if-else-message/39943/1 "2022-03-22T11:09:27Z")

</div>

Hello  
Is it possible and how to code an IF ELSE condition that tests a date and works from it, displays a warning message?  
Now I can only hide the date field below today’s date, but I would like to display a message, is it possible?  
Thanks you in advance for your opinions

---

<div class="post-metadata">

**Author:** ![ShantanuIyengar](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shantanuiyengar/32/35546_2.png) [@ShantanuIyengar](https://community.glideapps.com/u/ShantanuIyengar)\
**Post date:** [March 22, 2022, 11:11am UTC](https://community.glideapps.com/t/coding-if-else-message/39943/2 "2022-03-22T11:11:50Z")

</div>

You can have all warning conditions below that preset and only show depending on the positive condition

---

<div class="post-metadata">

**Author:** ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)\
**Post date:** [March 22, 2022, 4:33pm UTC](https://community.glideapps.com/t/coding-if-else-message/39943/3 "2022-03-22T16:33:14Z")

</div>

Correct, I use New Action Show message if, I hope to display message when the screen is called and opened. And not when the user click on the date.  
At opening of the screen  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/5/854dfd2e1c67e3bf388f4d4a604f7bc22009e0fc.png)  
And the mesage is displayed when the user click on the field  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/d/3dcbdf82f327bf733e06337bcf8a0e247d7adb5e.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [March 22, 2022, 4:58pm UTC](https://community.glideapps.com/t/coding-if-else-message/39943/4 "2022-03-22T16:58:56Z")

</div>

Would a hint component where the visibility settings references an if-then-else column in the data editor work in your case?

What does your flow look like to open that screen?

---

<div class="post-metadata">

**Author:** ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)\
**Post date:** [March 22, 2022, 6:46pm UTC](https://community.glideapps.com/t/coding-if-else-message/39943/5 "2022-03-22T18:46:37Z")

</div>

I think resolve the problem with a condition of visibility  
In fact this is very easy  
I’m sorry and thank you for your help

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [March 23, 2022, 6:47pm UTC](https://community.glideapps.com/t/coding-if-else-message/39943/6 "2022-03-23T18:47:03Z")

</div>

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