How to save data for temporary user

I am building a webapp where people can give a test. However, I want users to take this test without signing up. I want to sign them up only if they complete the test. What is the best way to do that as I can’t store their test data without them being logged in.

it depends on how much data you need to store.
If you don’t specifically want to create records to the DB, you can use state to hold the data temporarily and process it that way. (State just means you keep the values in memory for the current session or element, without saving them permanently.)

If you don’t have any issue with DB creates, you can generate a unique token for each session (for example, current date/time formatted as: custom (ddmmyyyyHHMM)) and create a record in a table with that token. Later, when the user signs up, you can link that record to their new account.

Bubble associates Things created by non-logged in users to the user itself once he logs in, so that’s covered.

Make sure the user creates a Thing when they complete the test and Bubble should take care of the rest once they log in.

There are 50 questions that the user would answer. Can I store them all in a custom state?

There are 50 questions one after the other that he/she would be answering. Every time he/she answers I will need to record the response. Will this all be taken care of?

Probably. Why don’t you test it…?

I will do that. Thanks.