Test for a parameter in the url

When a page is loaded, I want to see if a referrer is present in the url.

This is part of an invitation feature. A member of my app can enter a friend’s email, and a message. An email is sent with a link back to my index page. I include the invitation creator’s id as a “ref” parameter in the url.

How do I test, when the page is loaded, for “ref” defined in the url?

Thanks for your ideas!

You can do “when page is loaded and ref’s value is not empty…” so it does something if ref = anything.

Or “when page is loaded and do a search for user’s id contains ref” so it does something if ref = an id that actually exists in your database.


Gaby | Coaching Bubble

1 Like