# How To Prevent A User From Accessing Screen When Not Logged In

**URL:** <https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410>\
**Category:** Get Help\
**Created:** [July 29, 2021, 7:40am UTC](https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410 "2021-07-29T07:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianmutungi00](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ianmutungi00/32/10098_2.png) [@ianmutungi00](https://forum.adalo.com/u/ianmutungi00)\
**Post date:** [July 29, 2021, 7:40am UTC](https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410/1 "2021-07-29T07:40:09Z")

</div>

**Hi Everyone,** How can i prompt a user to first login before access a screen, for example: **Redirect A Client To Register Or Log in Before Submitting A Complaint Form!!**  
Thanks.

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [July 29, 2021, 8:16am UTC](https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410/2 "2021-07-29T08:16:37Z")

</div>

On the link going to the screen:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/49542fea784d44850db235421a92f949ec4cd94a.jpeg)

Click advanced on the bottom of the action, happens sometimes:

 ![Screenshot 2021-07-29 at 15.15.14](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/90638d6d5ef0c9e44e77b6da3369107b26485884.jpeg)

If logged in user email is equal to empty.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9649398c9e4be40f619171d3b4b4215c28c67188.jpeg)

So if user is not logged in, it will go to sign up screen.

Then have another link action with the opposite logic, (logged in user is not equal to empty) - to proceed to the limited-access screen.

---

<div class="post-metadata">

**Author:** ![ianmutungi00](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ianmutungi00/32/10098_2.png) [@ianmutungi00](https://forum.adalo.com/u/ianmutungi00)\
**Post date:** [July 29, 2021, 9:16am UTC](https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410/3 "2021-07-29T09:16:37Z")

</div>

Thanks this works well. 😌

---

<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:** [August 8, 2021, 9:17am UTC](https://forum.adalo.com/t/how-to-prevent-a-user-from-accessing-screen-when-not-logged-in/15410/4 "2021-08-08T09:17:09Z")

</div>

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