Sign Up via QR Code

hi all: really need help with the last step in my app. here’w what im trying to accomplish:

On my Users Table, I have row IDs (which i renamed to User IDs), and another column with a QR code of their User ID. when someone else scans this QR code (or copy-pastes the referral link attributed to that QR code) - I want to direct them to a Sign Up page, but I need the Sponsor ID (User ID of whoever owns the QR code that they scanned) to be pre-filled, so that the owner of that QR code will be tagged as their Sponsor and reap the benefits from their interactions in the app.

I watched Robert P’s youtube tutorial on pre-filled QR codes but i cant get the “append URL” part to work.

My app is private so when the QR code is scanned or the referral link is copied -they are taken to the landing page. They then need to fill in their email and enter their PIN - which adds a row to the users table. upon initial login, they can only see a screen with a button to “Complete your Profile” - which will actually “edit” their User Profile with the required fields (all other screens are hidden at this point).

Then they need to select their Sponsor from a dropdown - and that’s exactly what i’m trying to eliminate since this should have been captured by scanning the QR code.

what am i doing wrong / what’s the correct process / how can i solve this?

thanks so much.

When they scan the QR code and sign in, does the app redirect them to the URL still with the parameter you want?

you mean with the current configuration? yes, i can see the live URL populate the appended version. but the actual sign-up “form” doesnt actually have the captured User ID and is stuck on just the signed-in user.

here’s the live URL screenshot:

Screenshot 2024-09-28 at 11.01.00 AM

but here’s the form still needing to select a sponsor

Screenshot 2024-09-28 at 11.02.29 AM

i would imagine the Sponsor ID should have been passed on to this screen… would really appreciate your help. thanks!

Can you link me to the video you watched? I assume it should be on a details screen, not an edit form? Can you also explain why you need to use an edit form instead of a details screen when it’s still in onboarding?

and the reason why my workaround is to edit their profile during this onboarding is because im probably doing it wrong. haha

i didnt do a form screen as it adds another row, when the previous step already did that when they put in their email.

edit: i just looked, it’s actually a details screen that edits their info on the user profile…

Yeah, you can just do a details screen. I always use details screen for onboarding.

so what do you think? my Users Table looks correct:

but the signup form only shows one User ID and is not dynamic

Screenshot 2024-09-28 at 11.37.14 AM

(i temp added a text component to show that the User iD does not change no matter whose QR code i scan)

Are you sure you are filtering that screen correctly to the signed-in user?

that’s probably the missing part. now that i have QR codes with dynamic User IDs - i dont know how to pass it on to the signup page.

that’s really confusing since the “signed in user” during the signup is the NEW user. im trying to auto-assign their sponsor who may not be signed in at that time they copied the referral link or scanned the QR code. they may receive it via SMS or FB posts or chats

Hide those fields from the user. Use a set column to set extracted fields from the URL to the field you need when they finish onboarding.

i will try this. thanks

im really not sure what im doing wrong.

my referral link column is a template of the base URL + the logged-in user’s ID.

next to that is a get part of URL column, which extracts his User ID,

then I have a QR code that points to the referral link.

i followed your advice of hiding the choice component for Sponsor ID - i actually just deleted it, and replaced with a custom action to set column - Sponsor ID - Users - Get Part of URL (or i could have gotten the row ID?)

however, every time someone signs up, no matter whose QR code i scan or copy/paste referral links - the only constant sponsor ID is the first one

im really stumped. please advise. thanks

im not even signed in as that user. im using the 2nd one with User ID
2JuMgc6YS4WBanRXXd0o-A

tried this on chrome and safari on my mac, my ipad and my phone, cache cleared on all 3

You got this part wrong I think, you should extract from the link of the “current screen” the user is viewing, and it’s easier to debug it in the real app.

i already tried Current URL prior. anyways i can try it again. I should be on which page?

would you care to take a peek? thanks

https://go.glideapps.com/join/affable-selection-cc5768

i remmeber now. since i couldnt get robert P’s “append URL” to work, i turned this into a template that’s the current URL + signed in User ID. i guess that “hack” really wont work?

That’s not a hack, you must use the “current URL” for it to work as far as I understand this method.

yeah ok thanks. so I should get the current URL of which screen? it cant be the signup screen as I need the User ID of the sponsor who gave their QR code, not the User ID of whoever is trying to create their new profile.