# Global variable before login?

**URL:** <https://forum.adalo.com/t/global-variable-before-login/24782>\
**Category:** Get Help\
**Created:** [March 18, 2022, 4:35pm UTC](https://forum.adalo.com/t/global-variable-before-login/24782 "2022-03-18T16:35:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulh](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@paulh](https://forum.adalo.com/u/paulh)\
**Post date:** [March 18, 2022, 4:35pm UTC](https://forum.adalo.com/t/global-variable-before-login/24782/1 "2022-03-18T16:35:51Z")

</div>

Is it possible to have a global variable that is accessible before user login? I want to store a code that a new user needs to enter to get to a sign up screen. Obviously if I create a collection with a code in it, it isn’t accessible as a condition if user is not logged in.

I don’t think this is possible, but thought I’d check.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [March 18, 2022, 6:41pm UTC](https://forum.adalo.com/t/global-variable-before-login/24782/2 "2022-03-18T18:41:13Z")

</div>

It is possible. You are able to query any collection without the user being logged in.

You’re just not able to query any “logged in user” parameters.

Just add your input and button. Then make a list of “All Codes” from the button and set the visibility of the list to “Sometimes Visible if \> Code Input \> is not equal to \> empty” and filter the code list to “Code # \> is equal to \> Code Input”

---

<div class="post-metadata">

**Author:** ![paulh](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@paulh](https://forum.adalo.com/u/paulh)\
**Post date:** [March 18, 2022, 7:24pm UTC](https://forum.adalo.com/t/global-variable-before-login/24782/3 "2022-03-18T19:24:53Z")

</div>

Perfect! I forgot about using lists! That worked, 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:** [March 28, 2022, 7:25pm UTC](https://forum.adalo.com/t/global-variable-before-login/24782/4 "2022-03-28T19:25:45Z")

</div>

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