I'm having trouble figuring out the best way to do this. I have a form that will be filled out by person A, then they use the "save" function to email the form to person B who can then review, make changes, and submit the form. The people who will be using this form aren't always paying attention/actually reading instructions, so I want to avoid having person B accidentally "save" and resend the same form to themselves again. Person B should never have the option to "save" the form at all.
The way I figured would be clearest would be to have a radio button field as the first question in the form and no other fields are displayed until an option is selected. The options are either "I am person A" or "I am person B". I have this working fine, but I want the "save" option to be hidden by default as well, and to only appear if the user selects the "I am person A" option. And of course, it would be nice if it would be re-hidden upon selection of the "I am person B" option in case they make a mistake. It seems like overkill, but I really need to foolproof this particular form...
So far, I've been using the custom JS to edit the wording in the save function (changed the instructions to put person B's email into the field and changed the wording to say they are sending for approval not exactly saving for later). But I can't figure out how to get this hiding function to work. I've tried a lot of different methods, but my biggest issue seems to be "onclick", or the like, is not actually running and the custom JS runs EVERYTHING in the file (for example in an "if" statement, it runs the code in both the "if" and the "else" statements...).
Any ideas would be welcome! Thank you!