Our process has two forms - the initial submission form and then the approver review form. The approver review form has four possible approver sections. Certain sections need to be hidden at certain steps in the process. The two criteria are that a radio field be marked "Yes" and that the process stepID = 36.
If all I do is the hide for the stepID it works. As soon as I add in the check for the radio selection it stops working. This is the javascript I have.
$(document).ready(function() {
if ($('input[name="stepid"]').val() == "36") && ($('anotherFacilityVol input[value="Yes"]').is('checked'))) {
$('.section1').hide();
$('.section2').hide();
$('.section3').hide();
} else {
$('.section2').show();
}});