I have a form with conditional logic based on the radio buttons and need to redirect the user to a specific posts based on the radio buttons checked.
I tried to proceed as per your guide “Conditionally redirecting the user to a different page”, however, the radio button ID keeps changing on every post reload (the form is inserted in a post). See below the code for the same checkbox before and after a post reload:
How can I make those inputs to have an “static” element ID, so I can use it to replace in the code below?