This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - how to attach an "onclick" event before the form is submit

lena - Wednesday, January 15, 2014 4:57 AM:

 I  want to attach an "onclick" event  in cilent side  before the form is submit.  where should I put  the javascript  method?

In usual .net  project it can write like this:

<input type="button" text="submit"  ruant="server" onclick="return form_submit();" />

How do I achieve it in Aars?

 



zahar - Wednesday, January 15, 2014 5:14 AM:

The question is what you wan't to achieve. If you wan to do some verification andor some data manipulations is better to add onBeforeAdd server event and return this.getInnovator().newError("some error text") if there is some errors in data and you want to stop the save. or return this; if you do want to save



lena - Wednesday, January 15, 2014 8:51 PM:

thank you very much .It really help me a lot .