Closed (won't fix)
Project:
Webform
Version:
6.x-2.1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2009 at 18:17 UTC
Updated:
12 Feb 2010 at 07:21 UTC
just a request:
Make the submit buttons disabled with JS after submit so user doesnt think he didnt submit form (on slow server may happen).
I guess we can assume most users have JS enabled.
Comments
Comment #1
imclean commentedInstead of hacking the module, my quick and dirty solution is to add some js to my theme's js file, in this case, functions.js:
To add the JS file, stick this in your template.php:
drupal_add_js (drupal_get_path('theme', $GLOBALS['theme_key']) . '/functions.js', 'module');This adds the function to all webforms. If you only require it with certain ones then modify the code as necessary.
Comment #2
maxferrario commentedYou could also try to use the "Block submitting twice" module: http://drupal.org/project/block_submit
Comment #3
quicksketchI think it would make sense to have this be provided by a separate module (as recommended by maxferrario). This problem exists on just about all forms in Drupal (comments, nodes, settings forms, etc.)