# How to show a button only to logged in user?

**URL:** <https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789>\
**Category:** Get Help\
**Created:** [October 12, 2022, 8:42am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789 "2022-10-12T08:42:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Smit](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dan\_Smit](https://forum.adalo.com/u/Dan_Smit)\
**Post date:** [October 12, 2022, 8:42am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/1 "2022-10-12T08:42:54Z")

</div>

What is the best way to show a button only to logged-in users?  
And vice versa to show a different one only for visitors (not logged-in users).

How can I do that?

---

<div class="post-metadata">

**Author:** ![charleshope](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/charleshope/32/25088_2.png) [@charleshope](https://forum.adalo.com/u/charleshope)\
**Post date:** [October 12, 2022, 9:10am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/2 "2022-10-12T09:10:08Z")

</div>

Logged-in user: have screens that are only visible after a user logs in.

Not logged-in user: have screens that are only visible if the user is not logged in.

You have full control over this.

---

<div class="post-metadata">

**Author:** ![Dan\_Smit](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dan\_Smit](https://forum.adalo.com/u/Dan_Smit)\
**Post date:** [October 12, 2022, 9:23am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/3 "2022-10-12T09:23:16Z")

</div>

Thanks @charleshope  
But how can I control it?

---

<div class="post-metadata">

**Author:** ![njimmy10](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/njimmy10/32/23489_2.png) [@njimmy10](https://forum.adalo.com/u/njimmy10)\
**Post date:** [October 12, 2022, 9:23am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/4 "2022-10-12T09:23:23Z")

</div>

You can add a visibility condition saying that;

show this button only if the user email is not equal to empty; this means that only the logged in users can see it.

If a button to be displayed only for non logged in users: only if the user email is equal to empty;

---

<div class="post-metadata">

**Author:** ![Filli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/filli/32/19843_2.png) [@Filli](https://forum.adalo.com/u/Filli)\
**Post date:** [October 12, 2022, 10:01am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/5 "2022-10-12T10:01:45Z")

</div>

To simplify I suggest to create different paths or set a verification status in the user database (verified? boolean) that is true only when the user has all the info.  
Than create conditions over that value

---

<div class="post-metadata">

**Author:** ![Dan\_Smit](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dan\_Smit](https://forum.adalo.com/u/Dan_Smit)\
**Post date:** [October 18, 2022, 5:27am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/6 "2022-10-18T05:27:18Z")

</div>

Thank you!!!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [October 28, 2022, 5:28am UTC](https://forum.adalo.com/t/how-to-show-a-button-only-to-logged-in-user/32789/7 "2022-10-28T05:28:02Z")

</div>

Closed on October 28, 2022, 5:28am UTC

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