Loading a page with a querystring?

My users will all come into the same page to setup an account and the account’s authorized users.

Once the initial authorized account users are setup and saved, a “Finish” button is clicked. This button triggers an email to each authorized user’s email on the account.

Each email (ideally) has a link in it, specific to that user, to a page in the app to complete their setup by uploading their identity document.

When the user clicks the link in their email and doc upload page is called/served/on init/onloaded i want to pass the specific user’s ID or other identifier via querystring or other method so that the doc upload page knows which user called the page and can load the correct entity for that user to attach the identity doc to the correct user.

How would this work?

Hello Robert,

When it comes to loading pages in a Page Loader based on certain conditions, there are multiple possible approaches you can take, such as:

  1. Function-based approach
  • Perform your logic in a function and return the name of the page according to the condition’s result.
  • The output should be returned in a string qodlysource that will be bound to your Page Loader.
  1. State-based approach
  • Set up a base state with a Page Loader whose initial value is either empty or a default page shared by all users.
  • Create additional states with conditions (e.g., based on the user’s role or privileges).
  • In each state, change the Page Loader’s initial value to the appropriate page for that condition.

This way, the correct page will be automatically loaded according to the user’s context, privileges, or any other logic you define.

The challenge is that the user is clicking a link in an email to goto a page that has the info for that user on it to edit. append etc.

The page needs to know which user clicks the link in order to populate the page with the correct information.

So how do i pass info from the link they click in the email into the app so it can populate the landing page with the correct user information?

Normally in php I would maybe add the user id as a querystring param on the link in their email, then the server would process the url and return the correct page and populate it with that user’s data.

Once users are logged in and working inside in the app, less issue with this, but for some of the upfront setup tasks, users are sometimes coming in from outside the app to finish theior setup, so how can the app know who they are and deliver the right page with the right values on it?

If this is a challenge based on the qodly webapp model. I think I could do a workaround. In the email that is sent to new users to finish their setup, I could include both a link, AND a “code” of some kind.

The user would goto a “welcome back to complete your setup” landing page and just have a single input/button on it where they manually enter the code in their email to continue.

The app could take the code and parse it into the user’s id. and deliver the right page with the user’s info based on the code they entered.

That will work fine I think, but wondering if there is another or more optimal way to do it just from the link they receive in their email to finish their setup?

this is similar to the problem with using third-party oauth redirects (e.g. trying to connect users using your app with quickbooks).

Thanks for this. I took a look at the thread. My, gulp, assumption, is that when I activate the app with public URL, the URL’s to access the app get alot more straightofrward? Yes?