How to specify the enctype of a Gravity form?

Asked

Viewed 128 times

2

I am using Wordpress with Gravity Forms. I have a form that I am using to submit data to a third party website. The detail, this site is waiting for the data to be sent in the form application/x-www-form-urlencoded, but Gravity Forms is sending as multipart/form-data. In the end, I can’t get the right response from the third party site.

Looking at the <form /> that Gravity Forms generates, I see that it has the tag enctype="multipart/form-data. Does it have a means of putting through the Gravity enctype="application/x-www-form-urlencoded?

1 answer

1


I managed to solve my problem. It is simply to use the hook gform_form_tag_{form_id} inside my plugin.

This hook can be used to put anything you want inside the <form /> (being parameters). The way I ended up using is using a pregreplace( ) to change only what wanted and leave the rest on pax.

Hook documentation can be found here: http://www.gravityhelp.com/documentation/page/Gform_form_tag

Browser other questions tagged

You are not signed in. Login or sign up in order to post.