Custom input names in GravityForms

How to add custom input names to gravity forms? I need to submit the form to a third party, which requires very specific form names.

My current idea is to write some jQuery to dynamically rename everything when the page loads. Obviously, this is not perfect.

Gravity forms: http://www.gravityforms.com/

+4
source share
3 answers

After contacting the creators, Gravity Forms sounds like they don’t support custom input names. As a workaround, I wrote a little jQuery to rename inputs with the correct form names. For instance:

$("input#input_1_1").attr("name","first_name");

+2
source

I managed to change the attributes of the form using the following hook:

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

+1
source

check it out, it works for me! Just put some code in functions.php and fill out the form, which will then send you a list of name names, they will be the same names that you can use with the developer tools, etc. It was just faster for me. Then change the code so that it publishes it through curl with different input names. This uses php to make it work on the server. This way, you don’t have to worry about people with JS disabled being disabled in their browser.

http://0to5.com/gravity-forms-submitting-forms-to-3rd-party-applications/

0
source

All Articles