I have a form where I have the submit button showing if a field is "0.00". It is working great when just entering information and submitting it as usual, but it is not working when the user saves a draft. I think I have it narrowed down to the code.
$(document).ready(function() {
var $submit = $('.Submit');
$submit.hide();
$("#Field36").on("change", function() {
if ($(this).val() == "0.00"){
$submit.show();
} else {
$submit.hide();
}
});
});
The problem is that the user is entering all the information that causes the above code to work before saving the formas a draft. When he opens the draft, there is no change to the field that is in the code, so the submit button does not show.
Is there a way I can edit my code to run if there isn't a change, but the field is at zero? I tried blur, but it didn't seem to work. That being said, I am not a skilled coder and I may have just written it incorrectly.