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.

Form Field Names

  1. I'm trying to add static form in HTML/PHP (from theme) to the end of several forms. It works great for one form, but the names of the field in HTML aren't settable from what I can see in the admin panel. They're generated automatically and numbered. So the static form that works for one gravity form doesn't work for other gravity forms. Is there a way to either detect the html name of a [gravity] field in PHP or is there a way to force the name of the gravityform field from the admin panel?

    Posted 6 years ago on Monday November 5, 2012 | Permalink
  2. Gravityforms complains if I force the name of the input form, I don't blame it because obviously it has to do processing in the back-end. I think the answer is detecting the name of the gravityform and adjusting the static form accordingly. How do I do that?

    Posted 6 years ago on Monday November 5, 2012 | Permalink
  3. David Peralty
    Administrator

    Can you give us more information on what you are trying to do? Maybe we can help think of a work around that will suit your needs.

    Posted 6 years ago on Monday November 5, 2012 | Permalink
  4. I'm integrating an existing HTML form (which would be far too complicated and inweildy to recreate in gravityforms), and it currently only works with one form, since gravityforms changes the input name to something different on every form and different from the name given to that field on the admin.

    For example, we're working around it by using a multiple select in gravity and tagging off that, using the name "input_17". That works for one form, but on another form (which changes dynamically as we're using this on products via
    http://www.woothemes.com/products/gravity-forms-add-ons
    ). The input name changes to input_18, etc.

    I don't know how else to describe it without giving out my employer's trade secrets.

    Posted 6 years ago on Monday November 5, 2012 | Permalink
  5. David Peralty
    Administrator

    I'm sure this all makes sense to you, but I don't understand how you are integrating the two, what you are expecting the output to be, and where the issue comes into play. As for trade secrets, just call everything "blue widgets", and give me a more detailed run through so I can better understand what you need or e-mail me it at peralty@rocketgenius.com, but then it might take longer as I'll have to pass it to the support person that would best be able to help, instead of all of us having access to take a look and assist.

    Posted 6 years ago on Monday November 5, 2012 | Permalink