Problem in saving custom state of a repeating group

So guys I really really really need your help.

I m creating a survey for people that have to be answered before they get registered. Before the registration of the user, I cannot save the survey’s info in the DB with the relative creator (obviously the customer), cause naturally is not registered yet.

I stored the standard questions and relative possible answers in a Option Set with Questions and as an attribute, a list text with relative possible answers.

Now, I created a repeating group that get data from this options set and show it to customer.

Here is the problem: i ve tried everything in order to get it automated but I need a simple and not time consuming way to save these answers and then attach them to the customer after the registration.

I ve tried customer Custom States with the repeating group but the fact is that I can’t retrive them after.

Do you have any idea how to?

You can save it to the database as „current user“ is saved temporarily even if the user is not registered.

At the end of your steps you should then register the user and its saved in the db with the correct user.

Hei @daviddr17 didn t get the second part you told me. What do you mean?

And if the user doesn’t t register I ll get unused db rows. Right?

Yes you’re right. But you could schedule a conditional workflow to delete the db rows. (maybe, if the user doesn’t register during the next 2 days or something)

Second part means that if you save something to the db, the created by is current user even if this user is not registered. If the user registers then, it will turn into this user.

Ok that makes sense. But have last question: if two people are answering the same survey at the same time while not being registered, does it create some problem in assigning the right registered user to his survey answers?
@daviddr17

No. :slight_smile:

I ve tried it out and is amazing. Reallyyyyy thank you!!!

Bumped in another big issue that is: if a customer is gonna go back on one of the questions, how do I make the change to that row?

because the created by is always saved, you can reference this value and make a change to this thing.

This topic was automatically closed after 70 days. New replies are no longer allowed.