Forum Academy Marketplace Showcase Pricing Features

Querying data to set state

Hi All,

I have a single-page style app where there are a series of questions that a user will complete. I want to persist the user’s place (state) so that a user can leave and then return to the place he/she left off.

How do I query the DB for the status of the user’s record, then use that information to hide/show the relevant fields?

Put another way, if a user has completed questions 1, 2, and 3, then leaves to another site and returns to the my app, they will see the prompt for question 4.

Ideally, this would be achieved without changing urls/page refreshes.

I’ll leave it at that. Thanks in advance!!!

sz