Show popup using iphorm_post_process

Home Forums Quform WordPress Show popup using iphorm_post_process

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

    I am trying to show a popup form based on data submitted from a dropdown menu. If one value is selected show the popup. I have the popup form code on the main form but the popup won’t fire from iphorm_post_process. Here is the code I have.
    function my_post_process($form)
    {
    $visualinsp = $form->getValue(‘iphorm_1_30’);
    if ($visualinsp == ‘Out Of Warranty Repair’) {
    echo ‘<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js”></script>&#8217;;
    ?>
    <script type=”text/javascript”>
    jQuery(‘.iphorm-fancybox-link-3’).click();
    </script>
    <?php

    }

    }
    add_action(‘iphorm_post_process_1’, ‘my_post_process’);

    #20653
    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