Return false and PreventDefault not working in both on submit and onclick

Return false not working…form keep submiting

@neerajnair
Use frappe.throw if you don’t want to submit the document