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.

Possible to change name and id attributes of input fields??

  1. (I already read the topic from 2010 by the way, but I wasn't sure if there were any updates)..

    I'm trying to use Gravity Forms to display my form correctly with validation and everything, however, I need to change the name and id attributes in order to integrate it with Bullhorn Staffing's API correctly.. so I was wondering if there was any way to do this..

    Also, all my PHP code for actually handling the form is in the template, so I'm assuming there shouldn't be any issues with the form action being the same page, correct? (If not, is there any way to change the action as well?)

    Posted 12 years ago on Monday September 24, 2012 | Permalink
  2. There is no built in way to change the name and ID attributes, and I am unsure if Gravity Forms would continue to work if you did change them.

    For changing the form action, you can use the gform_form_tag filter http://www.gravityhelp.com/documentation/page/Gform_form_tag

    This is a good article about sending data to 3rd party services using the gform_after_submission hook: http://www.0to5blog.com/creative/gravity-forms-submitting-forms-to-3rd-party-applications/

    Posted 12 years ago on Monday September 24, 2012 | Permalink
  3. I have an issue like this one and I must find a way; my form is generating this name for a checkbox:

    <input name="input_2.1" type="checkbox" ..." id="choice_2_1" ...>

    I understand we cannot change the name of the input, but the dot ( . ) in the name is causing some issue with a third party framework: "Uncaught Error: Syntax error, unrecognized expression: input[name=input_2.1]"

    I have tested and there is no error when using the input field name without the dot.
    Is there any workaround, like always naming without using the dot?

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink