Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#formid').submit(function(){
- $(this).children('input[type=submit]').prop('disabled', true);
- });
- /**
- * Implementation of hook_form_alter().
- */
- function mywebform_extra_form_alter(&$form, &$form_state, $form_id) {
- // Add extra submit for a particular Webform node:
- if ($form_id == 'webform_client_form_44') {
- // Add the submit handler after the existing Webform submit handler,
- // but before the second Webform handler. Pop off the first one and add
- // ours second.
- $form['#submit'][] = 'mywebform_extra_validate_44';
- }
- }
- /**
- * Submit handler for Webform ID #44.
- */
- function mywebform_extra_submit_44(&$form, &$form_state) {
- global $user;
- // Now you can perform here api request and redirect
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement