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
    Member

    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: http://hetgoedeboek.be/muziek/thisismysong/ (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: http://pastebin.com/f6xZtXVu

    Here is single-product to show metaboxes: http://pastebin.com/wa3tNW3K

    The form is created by this code for shadowbox: http://pastebin.com/75W5Qyj3

    Am I am missing something???

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

    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 8 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.
    http://www.gravityhelp.com/forums/forum/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 8 years ago on Tuesday August 28, 2012 | Permalink
  4. stacker02
    Member

    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:

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

    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 8 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 8 years ago on Tuesday August 28, 2012 | Permalink
  6. stacker02
    Member

    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 8 years ago on Friday August 31, 2012 | Permalink