A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Yes, I would also use JavaScript for this. Something like this:
$(".xform").submit(function () {
if ($(this).valid()) {
$(this).submit(function () {
return false;
});
return true;
}
else {
return false;
}
});
Hi,
A client is reporting issues with duplicate xform posts (they are using "the old XForms").
The form allows anonymous posts, and the same user is allowed to post the form several times.
I reproduced the issue locally with clicking multiple times on the sumbit button, I was able to post the same message 3 times before the thank you page was visible.
Any suggestions on how I can stop this from happening?
The form is rendered using the Episerver Html.PropertyFor() method.