Hi there,
I’m trying to implement an invite-only survey without requiring users to log in. I have an Invites
table and a mechanism for randomly auto-generating new invite codes and inserting them as new rows within that table. So far so good.
I want the first screen of the app to ask the user for an invite code, and if it’s valid, to proceed with the rest of the multi-page survey. I have the submit button hooked up to an action which validates the invite code. I’ve implemented this validation using a relation to the invites table, and then a conditional column which computes the validity (“valid” if the relation is non-empty, and “invalid” if it’s empty). This works fine when logged in, but the problems come flooding in when not logged in.
To ensure that all the responses from one user to questions in the survey are associated with a single invite code, I need some way to persist that invite code across the whole user session. The problem is that apparently there’s no native support for passing parameters between pages in Glide, nor is there native support for proper session variables, e.g.
Session Variable Column.
I simply cannot get this working despite having tried SO MANY combinations of things, including:
- Using the users table as a pseudo-store for session variables (only works when logged in, as it seems every user not logged in shares the same data in near real time)
- Row owners on the users table to solve the above sharing problem
- User-specific column in the users table for the invite code
- The first page being a form which creates a new entry in a guests table
- User-specific column in a guests table for the invite code
In many cases when not logged in and/or using user-specific columns, it seems that computed fields are simply inaccessible or not updated.
I found the documentation on USCs confusing (e.g. how is a particular USC value tied to a particular user? and how does that work when not logged in)? I found several posts in this forum which gaves hints about it, but those were all related to different use cases to mine. I also had a similar problem with how row owners is supposed work with users not logged in.
Would massively appreciate help here because I’ve hit multiple brick walls!