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.

Help using a Hook

  1. I have an index page which lists all of my events.

    The form is embedded using the shortcode:

    [gravityform id=10 ajax=true description=false title=false]

    Next to each event there is a a URL link "Make a resevation" which calls the gravity form.

    I need to use a hook which will pass the event name to an Admin field in the gravity form.

    How can i do this? Presumably by grabbing the title i define somehow on the "Make a reservation" URL.

    many thanks

    Posted 7 years ago on Thursday June 13, 2013 | Permalink
  2. You should be able to pass the event name via a query string in your link that will then populate the form accordingly. See this page (query string method):

    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

    Posted 7 years ago on Thursday June 13, 2013 | Permalink
  3. this doesn't seem to work with my scenario.. could you give me a specific example..

    Posted 7 years ago on Thursday June 13, 2013 | Permalink
  4. Following the tutorial - I need this

    http://siteurl.com/form-url/?event_name=This is test

    But what is the form-url ?

    I can't find the form-url anywhere in the options..

    Posted 7 years ago on Thursday June 13, 2013 | Permalink
  5. David Peralty
    Administrator

    The form URL is whatever page you've embedded the form on in your site.

    Posted 7 years ago on Friday June 14, 2013 | Permalink
  6. what if I embed the form on the same page like this... it doesn't seem to work... I can send you a private link to our beta site to check this out..

    <a class="ajax" href="#contact-calendar">Book Tickets</a>
    
    <div style="display:none;">
    <div id="contact-calendar" >
    [gravityform id=10 ajax=true description=false title=false tabindex=200]
    </div>
    </div>
    Posted 7 years ago on Friday June 14, 2013 | Permalink
  7. ???????

    Posted 7 years ago on Wednesday June 19, 2013 | Permalink
  8. David Peralty
    Administrator

    If you have a link to get to the form, that link would be like this:

    http://yoursite.com/pagewithform/?event_name=Circus

    On the Page with the form, you would have a field that is hidden that has Allow Dynamic Population checked off, with the parameter being event_name. Then when someone comes to the form with a query string, that field will be filled out.

    Posted 7 years ago on Wednesday June 19, 2013 | Permalink