How to specify the enctype of a gravity form?

2

I'm using Wordpress with Gravity Forms. I have a form that I am using to submit data to an outsourced website. In detail, this site is expecting data to be sent application/x-www-form-urlencoded , but Gravity Forms is sending multipart/form-data . In the end, I can not get the right answer from the outsourced site.

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

    
asked by anonymous 18.02.2014 / 18:50

1 answer

1

I was able to solve my problem. It's simply to use the gform_form_tag_{form_id} hook inside my plugin.

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

Documentation about the hook is here: link

    
19.02.2014 / 02:30