Hey everyone,
I’ve got a setup where I’ve got a data type called “Project” that’s set to private. This means only users in the same “SaaS Account” can access it. I’ve also got another data type called “Diagnostic” which has a field referencing the related “Project”. The goal is to end up with a maturity score related to the topic.
Here’s the deal: When a user makes a new “Diagnostic”, they typically send a public page to their clients (who aren’t logged in and don’t have an account) to answer some questions. Sometimes it’s a quiz, other times it’s open-ended questions. The data type linked to that page is “Diagnostic”. When they get a response, a new data type called “Recorded_Answers” stores the answers along with the related “Project” info.
The quiz or form can be really long, so I’ve avoided using custom states to store the answers. Instead, I use them to keep track of the client’s score so far, like this:
Here’s what I need help with:
- Saving the session if the client wants to come back later. Right now, I lose the custom stored scores, and I’m not sure how to keep them. I only save the score at the end after some calculations with the current “Diagnostic” score. Also, the user that’s responding the form is not logged in (there’s no need for them to have an account).
- Making sure clients can only submit once, and stopping multiple submissions from the same person.
Could someone lend a hand? I’ve finished my app, and this is the fourth time I’ve redone this part, but I still can’t get it right.