PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form not displaying after adding a new form

  1. Hello - We have created two forms for our site and have them linked to two pages;
    http://www.wpspaint.com/blog/online-job-application/
    https://www.wpspaint.com/blog/online-payments/

    We had the online job application up and running and then added the secure payments form which uses a jquery snippet to auto populate the billing address if the same address box is checked.
    After getting the online payments form up and running the job application form does not display. Works fine in preview mode and I did not see any errors when I looked at it with firebug.

    Dale

    Posted 12 years ago on Wednesday April 17, 2013 | Permalink
  2. Hello - I got the online job application to display by adding this to the theme style sheet;

    body #gform_wrapper_1 {display:inline !important;}
    the downside is it broke the conditional logic for three of the fields on that form so I had to remove conditional logic. It appears to be a jquery conflict between the forms. For jquery on the payment form I used the following in an html block in the form;
    <script type="text/javascript">
    $("#choice_14_1").click(function() {

    if($("#choice_14_1").is(':checked')) {
    $('#input_2_9_1').val($('#input_2_2_1').val());
    $('#input_2_9_2').val($('#input_2_2_2').val());
    $('#input_2_9_3').val($('#input_2_2_3').val());
    $('#input_2_9_4').val($('#input_2_2_4').val());
    $('#input_2_9_5').val($('#input_2_2_5').val());
    }

    });
    </script>
    This code in the functions.php;
    if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
    function my_jquery_enqueue() {
    wp_deregister_script('jquery');
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js", false, null);
    wp_enqueue_script('jquery');
    }

    and this in the header.php;
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

    Posted 12 years ago on Friday April 19, 2013 | Permalink
  3. Richard Vav
    Administrator

    Hi Dale,

    Can you try changing the jQuery version from 1.9.1 to 1.8.3 as there have been issues with 1.9 due to it being a major re-write.

    Regards,
    Richard
    --
    Just another member of the community helping out where I can

    Posted 12 years ago on Friday April 19, 2013 | Permalink