I'm trying to disable or hide one radio buttons based on the value in a single line field. That field (License Flag) is populated with the result of a formula based on information from a lookup ("Y" or "N"). If this field is "N", I'd like to disable or hide the Reject button:
After reading through many posts, I've been fiddling around with this, but I have been unsuccessful:
$(document).ready(function() {
$("#q245" input).on("change", function(){
if($(this).val() === "N"){
$('.approverDecision input[value="Reject"]').prop('disabled', true);
}else{
$('.approverDecision input[value="Reject"]').prop('disabled', false);
}
});
});
Suggestions appreciated. Thank you.