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

Saurabh Kolte
Kilo Contributor

hello Pradeep and Kalaiarasan actully my script include is in global scope and my client script is in application scope. When I am using getXMLWait() it is giving me the error message as acces to getXMLWait() is not allowed in your application scope.


Should I write my client script and script include in same scope?


getXMlWait doesnt work i nscoped application , alternative is getXMLWait. even though it works after returning false still form is getting submitted.



Is this something bug in scoped application David.Gatley