M
M
Maxim2015-04-16 00:54:06
Drupal
Maxim, 2015-04-16 00:54:06

The submit button in web forms stopped working. What to do?

I'm sorry, the question is off topic. Closed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Pavlov, 2015-04-16
@MToUCH

To start. Look for the script

$('.webform_45_send').click(function(){
      if ($('#block-webform-client-block-45 input[value=""]').length == 0) {
          $('#modal_webform_45 #edit-submit').click();
      }
      return false;
})

and change to
$('.webform_45_send').click(function(){
      var formIsFilled = $('#block-webform-client-block-45 :input').not('[type=hidden]').filter(function() { return $(this).val() == ""; }).length == 0;
      if (formIsFilled) {
          $('#modal_webform_45 #edit-submit').click();
      }
      return false;
})

Check other scripts, I haven't looked at other forms. Such issues need to be resolved on freelance exchanges, here the resource has a different specificity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question