I just want to know the correct code for Javascript to save the document/ or submit in this case.
I have a form which when you fill out you need to submit. I used JavaScript to validate the fields and now i need to know the code to make it submit… Thnx
Subject: Saving my Document
That depends. Did you put your javascript validation code in the form’s onSubmit event? Then use formula language to submit: @command([filesave]); @command([fileclosewindow]). I’m guessing, though, that if you knew about the onSubmit event, you’d know about the form’s submit() method, which is the answer to your more likely question. In a button you can get away with:
this.form.submit()