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.

Auto Generated Fields

  1. Hi there,

    Here is my situation. I'm trying to sell something using a gforms auth.net plugin form. However, when the quantity of the product is > 1 I would like to auto generate name fields for however many extra products are purchased above one. For example: If 3 were bought, it would ask for two name fields (or just a simple text line box). 60 Could also work too, for example. I was originally thinking of just putting a hidden text box, and having that show on a condition of quantity > 1 and having them put names in a comma delimited format, but I may need to do emails, etc as well, so auto generation would work best.

    Is there any way to do this with gforms? Auto generate fields based upon an input number? Or would I be better off making a custom jQuery script that grabs the quantity field and then appends them? (Not sure how I would collect such data, though).

    Thanks

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  2. It sounds like you could do this with conditional logic, but if someone purchases 300 of these things (what is it you are selling BTW?) then that could get pretty messy in terms of form maintenance.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  3. I'm selling tickets. So each ticket needs to be associated with a name/email/etc. I'm unsure if many people will be buying huge bulk orders, but that functionality has been requested, so I'm trying figure it out with Gforms.

    Any insight would be greatly appreciated.

    Thanks

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  4. Hi Phase00,

    I wrote this up just for you. ;)

    http://gravitywiz.com/2012/06/03/set-number-of-list-field-rows-by-field-value/

    Posted 11 years ago on Monday June 4, 2012 | Permalink