How can you cancel a form submission through client script?

DWQA QuestionsCategory: QuestionsHow can you cancel a form submission through client script?
Editor Staff asked 2 months ago

How can you cancel a form submission through client script?

1 Answers
Editor Staff answered 2 months ago

If you want to cancel a form submission through client script, then the onSubmit function should return false. You can use the following syntax to cancel a form submission through client script:
function onSubmit() { return false; }