How do I stop a form from being submitted in a Client Script?

kishorchika
Tera Contributor

How do I stop a form from being submitted in a Client Script?

5 REPLIES 5

pranita-24
Tera Guru

Hi ,
Can you please share script if possible?
OR 
Use return false; inside onSubmit client script.

Use return false;

vignesh parthib
Kilo Sage

onSubmit Client Script

  • Script Type: Client Script
  • UI Type: Desktop (and/or Mobile if needed)
  • Type: onSubmit
  • Example Code:

function onSubmit() {
return false; // 
}

thanks,

Vignesh

"If this solution resolves your issue, kindly mark it as correct."