Hey there,
I have a dataset, which contains points that users award to themselves. When they have achieved a certain milestone, they slide a slider across to award themselves a certain amount of points. This all works fine until they hit the submit button.
The only way I can get the data to save after hitting submit, is if the submit button then links to another page. When they then return to the original page the points are saved. What I’d like is for the points to be submitted to the dataset whilst remaining on the same page.
Any ideas anyone? Appreciate any help.
Cheers,
Andy
As you are posting in the Corvid Forum, have you used any code for this, if you have then please add it in a code block along with any screenshots that might help as well.
Hey, the only code used is the below which is placed in the backend / data.js
This is used calculate the users total points by summing the individual areas.
import wixData from ‘wix-data’ ;
export function NewUserData_afterQuery(item, context)
{
item.testSum = item.test1 + item.test2 + item.test3;
return item;}
And below is the button connection, I have to choose to link to another page in order for the points to submit to the dataset. Even if I link to the same page (refreshing the page) it doesn’t work.
