search
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.
submitArgs.CancelAction = true; submitArgs.CancelReason = "reason";
How can forms submissions be canceled? Below is the current code base that I am working from. I hooked into the form submission event for custom processing, but I need a way to cancel the form submission, if the custom validation fails.