New Update 2.0

Home Forums Quform WordPress New Update 2.0

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21968
    brabox
    Participant

    Hello,
    Great to see a new update and fresh look.

    I have some questions regarding some backend code that you guys helped me with a long time ago.

    I use QuForm for most of my “calculators”, i get the values from the form and redirect them to another page in which i have custom PHP code that uses the variables from quform.
    Below is a sample code which i am using with the Original QuForm (iphorm).

    Will this work with the new 2.0 one? any modifications is should be aware of?

    //Code provided by QuForm
    function calctest($url, $form)
    {
    $data = array(
    ‘state’ => $form->getValue(‘iphorm_XX_1’),
    ‘capitalorcountryside’ => $form->getValue(‘iphorm_XX_2’),
    ‘itempickedupinusa’ => $form->getValue(‘iphorm_XX_3’),
    );

    $data = array_map(‘rawurlencode’, $data);

    $url = add_query_arg($data, ‘https://www.exampleredirect.com’);
    return $url;
    }

    add_action(‘iphorm_success_redirect_url_XX’, ‘calctest’, 10, 2); //Change XX to form ID number

    Thank you!

    #22037
    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.

Viewing 2 posts - 1 through 2 (of 2 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