I need another pair of eyes on this Forms code.
The situation is that someone comes in as a new client, but they actually have a file from a few years ago. I lookup SSN and the populate a hidden field with their name. If the hidden field is not empty I show a read-only field with a default value of a duplicate client warning. I want to disable the submit button in this circumstance. The submit button is on the second tab.
I am trying to evaluate the value of the hidden name field when the SSN field loses focus. I'm sure I'm missing something in the finicky jQuery syntax. I'm an experienced coder, but not experienced with JS and JQ.
$(document).ready(function () {
// Disable submit button if duplicate client warning is displayed
$('#q7 input').blur(function () {
if ($('#q73').val() !== '' {
$('.Submit').attr("disabled", "disabled");
} else {
$('.Submit').removeAttr("disabled");
}
});
});