prevent form submission?

Saurabh Kolte
Kilo Contributor

i am writing a client script which will give a alert when same email id is present already in the table. But when I am submitting the form it is allowing the user to submit.

I want to prevent the submission of form if same email id is present?

I am writing a client script and script include for that which is client callable. I am checking the existing email ID with the help of gr.addQuery() in script include.

11 REPLIES 11

Govind Kumar S1
Kilo Guru

Hi Saurabh,


you can use" return false"   to stop submission of form.



Thanks & Regards


Govind kumar Sharma


nishi8
Kilo Expert

Hi Saurabh,



In your client script, after the alert message write "return false;".


This will prevent the form submission.


yes I have tried "return false;" but still it is taking the same email id on submitting the form.


Paste your script here.