Hi,
I want my users to land to a welcome page after sign-up (not login) which should show collection elements stored during the registration function I wrote custom.
These elements appear only if I manually refreshing the page.
I have a lightbox with
$w(’ #SubmitButton ‘).onClick(() => {
…
wixUsers.register($w(’ #email ‘).value, $w(’ #password ').value, {
// storing additional data in a custom database collection upon signup
}).then(() => {
wixWindow.lightbox.close();
wixLocation.to(“/signup-confirmation”);
}); }
The additional data I stored during the register function should be retrieved automatically and shown in the signup-confirmation page upon load, but they actually appear only after I refresh manually the page.
Any idea on how I can achieve this? This is driving me mad since 3 days already, any help is super appreciated
Thanks!