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.

Add 'Customer' functionality

  1. nd-jb
    Member

    Hi,

    Just wondering if GF would allow for a form to be expandable, i.e.:

    In a specific section, rather than display input boxes for five customers by default (and their individual fields ('Name', 'Height' etc.)) - when a reservation may only be required for one customer - is it possible to only display one customer initially, but have a '+ add customer' switch which creates a new identical section, with the same fields for additional customers to fill in?

    Thanks!

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  2. Yes, you can do this, if you have a fixed number of field groups (customers) you want to allow on each form. You have to add all the fields to the form, using section breaks, then hide the 2nd through 5th sections with conditional logic. Then, you have a question "do you want to add another customer?" and when that is checked, you reveal the next section.

    It's not super-clean since it gives you a really wide record (one customer beside the next one) rather than multiple records, one for each customer.

    You could also approach it by allowing the visitor to fill out the form, whatever info is retained for each customer, then have them enter one customer, and on the confirmation message, give them the option to "add another customer" and that is a link to the form again, but pre-populated with the unchanging information. That way they don't need to type the same information over and over. That is another approach.

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  3. nd-jb
    Member

    Thanks for your response,

    To give you a better idea of context of what I'm working with, it's an online equipment rental order form...therefore :)

    ...my next question then would be, were I to purchase the premium GF bundle, would I be able to have the functionality above, along with the ability for each customer to select certain equipment, all priced, which then adds to a total sum - upon finishing the form, the client then 'Submits' the form which with the total somehow ties into Paypal. Does this sound feasible?

    Thanks!
    Jon

    Posted 12 years ago on Tuesday February 7, 2012 | Permalink
  4. Yes. With the developer license, you would have access to the PayPal add-on, and it can handle this by extending the functionality of Gravity Forms.

    Posted 12 years ago on Wednesday February 8, 2012 | Permalink
  5. kristopherk1
    Member

    I too am looking for a way to "expand" a field, without knowing how many fields the user will need.

    There are several jquery forms that do this, but not sure how to implement this into gravity / wordpress .

    Has anyone been able to do this with gravity forms?

    Posted 12 years ago on Monday March 12, 2012 | Permalink