Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41730

Double-clicking the Submit button in any moodle form causes the action to be repeated



    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.5.1, 2.7
    • None
    • Forms Library, Forum


      When a student is making a post to a forum, if they double-click on the "Post to Forum" button, two posts will occur.

      At first, I thought that this is really just a user problem... don't double-click! But then I got to wondering if there is a way in either php, or in other moodle code, to catch and ignore the second click? Then, I got to thinking about where else in Moodle a double-click might be a problem. Hmmm, maybe in other places where a form is filled out, such as filling out a profile and clicking Done. Somehow, as in this example, two student profiles are not created... no problem.

      I do know that right now, according to Martin, that a lot of emphasis is being placed on improving forums, so maybe this request can be added to the list, if it is not already there.

      Some discussion about this has occurred on moodle.org (https://moodle.org/mod/forum/discuss.php?d=236850).

      I am using 2.5.1, and the problem is there. I think that this problem could have been around for awhile.


        Issue Links



              nadavkav Nadav Kavalerchik
              rjerz Rick Jerz
              Andrew Lyons Andrew Lyons
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              19 Vote for this issue
              20 Start watching this issue