prevent form submission?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 04:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 04:33 AM
Hi Saurabh,
you can use" return false" to stop submission of form.
Thanks & Regards
Govind kumar Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 04:36 AM
Hi Saurabh,
In your client script, after the alert message write "return false;".
This will prevent the form submission.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 04:44 AM
yes I have tried "return false;" but still it is taking the same email id on submitting the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 04:46 AM
Paste your script here.