Hello,
I have a form where I want the submit button to show only if a variable =1. This works unless a user opens a form that was saved as a draft. When a draft is open, the submit button does not appear unless there is a change to the variable on the form. Is there anything I can add to my script so the submit button will always appear when the variable =1? Thanks!
$(document).ready(function() {
var $submit = $('.Submit');
$submit.hide();
$('#q156 input').on("change", function() {
if ($('#q156 input').val() == "1"){
$submit.show();
} else {
$submit.hide();
}
});
});