I am looking to implement a review step/task in a process. This step would be automatically triggered if the email field and the email field confirmation field do not match up. I used the hide submit button logic from the 'CSS, JavaScript, and Formula Examples' process in the Solution Marketplace. I created a check box with a Yes or No value that I would like to use in the exclusive gateway that routes to the review step/task. I found some additional logic in the marketplace process that checks all boxes in the field. What I am struggling with is trying to pick what box to check based off the confirmation pass/fail. Is this something that can be done with JavaScript?
I've included the JS I am using so far. I appreciate any and all assistance that can be provided.