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.

Pre-filled Booking Form

  1. We sell training courses, and as part of a sale send a booking form to our customer.

    This form is currently in PDF format, and has a few fields pre-filled, such as Course Name, Course Date, Price etc..

    I've created a lovely booking form with Gravity Forms, but I'm wondering if there's a way I can send my customer to this page and have fields such as Course Name, Date, Price pre-completed just for them.

    They can then complete the rest, pay by PayPal or Invoice and receive the completed form emailed to them! Wohoo! (If it can be done?)

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  2. You can pre-populate fields in Gravity Forms by checking the box on each field "Allow Field to be Populated Dynamically" (it's on the advanced tab for each individual field.)

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

    Then you can craft a link which includes these parameters and send that to your customers.

    See this link:
    http://gravity.chrishajer.com/pre-populate-everything/?fruit=bananas&highschool=Harvard

    Fruit and High School are pre-populated in this example. You can do this for every field in your form if you want.

    Posted 11 years ago on Monday October 15, 2012 | Permalink
  3. Ah perfect - thanks Chris.
    One more thing - is it also possible to make those dynamically populated fields read only?

    Posted 11 years ago on Monday October 15, 2012 | Permalink
  4. There are a couple ways to do it. Both involve two parts:

    1. Give the field you would like to be "read only" a CSS class name (on the advanced tab for the field in the form builder) a custom class (pick something, like readonly or disabled).

    2. Add some jQuery to make the field read only when the form is rendered.

    Take a look at these two posts:
    http://www.gravityhelp.com/forums/topic/make-a-readonly-field#post-7034
    http://www.gravityhelp.com/forums/topic/disabled-fields#post-20592

    You just need one of those solutions. Try one and let us know how it goes. Please include a link to your form online if you need more help after trying this.

    Posted 11 years ago on Monday October 15, 2012 | Permalink