Skip to content
Discussion options

You must be logged in to vote

Hi @rmtham, I think the problem is that this line redirects participants to a different page:

window.location.assign("**sona_study_url**"+sona_id)

And that line comes before the data saving bit of code. This is a problem because the data saving happens over the network and therefore is affected by the connection speed, which means that sometimes the participant is redirected before the data has saved. So instead what you want to happen is for the data to save first, and only when that's completed, redirect the participant to the SONA completion page.

To fix this, you can try moving the window.location.assign("**sona_study_url**"+sona_id) line so that it runs after data saving is complete,…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@becky-gilbert
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant