You are viewing limited content. For full access, please sign in.

Question

Question

hide submit if a Single line value is empty

asked on June 4, 2015

Hi,

 

I believe this can be done with Javascript, Im looking to hide the Submit button if a Field (q43) contains no value.

 

 

 

Any assistance would be greatly appreciated

 

 

 

Cheers

Chris

0 0

Answer

APPROVED ANSWER
replied on June 4, 2015

You can use something like

$(document).ready(function() {
  
  $('.Submit').hide();
  
  $('#q43 input').on('blur', function() {
    if ($('#q43 input').val() == "") {
      $('.Submit').hide();
    } else {
      $('.Submit').show();
    }
  });
  
});
2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.