I know to hide a submit button but i am not sure how to hide the button based off a signature.
Question
Question
Replies
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?
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.
I also want to hide the reject button until the reason field has some type of words in it.
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();
}
});
});