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.

Dynamic Population Not working

  1. stacker02

    Recently I have updated my theme and now my dynamic population has stopped working. I been trying to go over everything, but I can´t figure out what I am missing.

    Form: (click blue button, this should bring in the info on the product)

    GF: I have each section, title, author, ISBN, type all check to allow to be dynamically inputed. For titel for example I have given it "titel"

    In my functions I have the following:

    Here is single-product to show metaboxes:

    The form is created by this code for shadowbox:

    Am I am missing something???

    Posted 9 years ago on Monday August 27, 2012 | Permalink
  2. stacker02

    I would even be willing to pay for someone to help me set this up as I really want to learn and understand it takes someones time. Thanks!

    Posted 9 years ago on Monday August 27, 2012 | Permalink
  3. If you'd like to try and find some paid help, you can post something on our job board.

    When you updated your theme, your functions.php changed and your page templates changed. Can you take a look at what is different? Did your field IDs or form IDs change? Was there any code in your header.php of the old theme which would be missing now?

    Posted 9 years ago on Tuesday August 28, 2012 | Permalink
  4. stacker02

    Hey Chris,

    Well here is what I have found out so far. If I create a modal from inside the page calling a hidden div to display the form like this:

    		<div id="avail" style="display:none;">
    		<?php gravity_form(1, true, true, false, '', true, 12); ?>

    Then the form populates, but I don´t get any scripts included so AJAX won´t work and it doesn´t seem like it sends. I have included this code in the header:

    <?php gravity_form_enqueue_scripts(1, true);?>

    What I had on the first example was calling the form through iFrame on a page I create in WordPress.

    This way add the code correctly as it alerts if a required field isn´t set, but the data won´t pre populate.

    So, I have half of what I need in both circumstances.

    Posted 9 years ago on Tuesday August 28, 2012 | Permalink
  5. So, is the problem related to you changing the theme, or did you actually change the way you do things as well?

    Posted 9 years ago on Tuesday August 28, 2012 | Permalink
  6. stacker02

    It's not from changing the theme. I thought initially it was because of my WordPress template, but after refreshing myself with the system I had I remember these two options.

    1) call the form through hidden div and the form works with pre-population but not AJAX errors
    2) call the form through WordPress page with stripped template for modal and pre-population doesnt work but AJAX does

    Posted 9 years ago on Friday August 31, 2012 | Permalink