Conditionally redirecting the user to a different page

Home Forums Quform WordPress Conditionally redirecting the user to a different page

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5323
    Juan
    Participant

    Hi,

    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?

    $selection = $form->getValue(‘my-static-id’)

    Regards,
    Juan

    #5324
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #5326
    Juan
    Participant

    HI Ally,

    thanks for the link. All it is working now as expected.

    Best,
    Juan

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy