# Trying to build a referral system

**URL:** <https://community.glideapps.com/t/trying-to-build-a-referral-system/9043>\
**Category:** Ask for Help\
**Created:** [May 13, 2020, 8:53am UTC](https://community.glideapps.com/t/trying-to-build-a-referral-system/9043 "2020-05-13T08:53:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 2:48pm UTC](https://community.glideapps.com/t/trying-to-build-a-referral-system/9043/6 "2020-06-03T14:48:47Z")

</div>

@Jeff_Hager: I was referred to your solution as I just posted what I feel is a bug:

> [@Sign-in - Public: doesn't work as expected](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230):
>
> Not sure if this is a bug but during our app’s development phase we had the sign-in status as PUBLIC. We noticed that whenever we tried to Favourite an item, a pop up welcome screen appeared requesting us to sign-in. Great! That’s what we expect to happen. However, non-logged in users are able to use any of our contact forms where one of the ‘special values’ is the user’s email address. This means that they are able to send an email message but it doesn’t capture their email address because …

Looking at your solution I don’t know where to start with this because I can find no resemblance to the screenshots you posted.

My use case is simpler than the original poster’s referral system, because in essence all I am seeking to achieve is to show the email field on the forms if the user is not logged it.

Or rather, hide the email field if they are logged in.

I’m amazed this isn’t achievable out of the box with Glide using the same logic as saving to favourites, i.e. force users to sign-up or login in order to use a contact form.

Any clues would be greatly appreciated.

---

_[View the full topic](https://community.glideapps.com/t/trying-to-build-a-referral-system/9043)._
