Announcement Announcement Module
Collapse
No announcement yet.
SimpleFormController Double Submit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleFormController Double Submit

    Hello all!

    I've got a form with a set of 6 textboxes and 1 checkbox that works likes a champ except...

    When submitting the form to the SimpleFormController that it belongs to the onSubmit is being executed twice. In this case, it's making a double entry into the database. I'm positive that I'm only clicking the submit button once yet can watch the onSubmit run twice.

    Anyone have any idea, hints, or suggestions as to what is going on?

    Thanks!
    Chris

  • #2
    Do you have any Javascript handlers bound to the form elements?

    Sometimes calling form.submit() inside an onSubmit() handler will cause such double submits.

    Comment


    • #3
      Originally posted by plethora
      Do you have any Javascript handlers bound to the form elements?

      Sometimes calling form.submit() inside an onSubmit() handler will cause such double submits.
      Actually I was calling a JavaScript submit on a submit button! D'oh! Thank you for the most excellent suggestion!

      Chris

      Comment

      Working...
      X