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

Question

Question

Hide submit button until signed

asked on December 8, 2017

I know to hide a submit button but i am not sure how to hide the button based off a signature. 

0 0

Replies

replied on December 8, 2017

I am just curious why you want to hide it? I am guessing it's to make sure they sign the form before submitting. Is there a reason just making the signature field required will not work?

1 0
replied on December 8, 2017

So we have a travel request. I want the supervisor to sign off on the request if they approve it. However, if they need to send the form back they don't want to sign off on the form acknowledging the wrong request. So I can't make the signature required. Hope that makes sense.

0 0
replied on December 8, 2017

I also want to hide the reject button until the reason field has some type of words in it.

0 0
replied on December 8, 2017

Hi Chynna

Here is some sample Code that Matthew Tingley had provided to an answers question which unfortunately I don't have the link to but should get you heading in the right direction.

$(document).ready(function () {

  $('.result_field input').change(function(){

    if ($('.result_field input').val() == 'POSITIVE') {

      $('.Submit').show();

    }

    else if ($('.result_field input').val() == 'NEGATIVE') {

      alert('Warning! There is a negative value.');

      $('.Submit').hide();

    }

  });

});

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.