<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Can I set fields Name Attributes to my values</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values</link>
		<description>Gravity Support Forums Topic: Can I set fields Name Attributes to my values</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 16:20:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/can-i-set-fields-name-attributes-to-my-values" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-158939</link>
			<pubDate>Sat, 02 Mar 2013 14:15:59 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">158939@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you want them to complete the transaction at Moneris, you probably want to use the redirect option for your confirmation, and send data in the query string.  You would not use the gform_after_submission hook in that case.  I'm not sure if Moneris allows you to send information in the query string though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Stéphane Bergeron on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-155078</link>
			<pubDate>Tue, 26 Feb 2013 11:47:41 +0000</pubDate>
			<dc:creator>Stéphane Bergeron</dc:creator>
			<guid isPermaLink="false">155078@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris,&#60;/p&#62;
&#60;p&#62;I've been playing with this and it does post successfully to the remote URL using a modified version with my own variables and $post_url of the code in the second example of your first URL. That is the example code below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;#39;gform_after_submission&#38;#39;, &#38;#39;post_to_third_party&#38;#39;, 10, 2);
function post_to_third_party($entry, $form) {

    $post_url = &#38;#39;http://thirdparty.com&#38;#39;;
    $body = array(
        &#38;#39;first_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.3&#38;#39;],
        &#38;#39;last_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.6&#38;#39;],
        &#38;#39;message&#38;#39; =&#38;gt; $entry[&#38;#39;3&#38;#39;]
        );

    $request = new WP_Http();
    $response = $request-&#38;gt;post($post_url, array(&#38;#39;body&#38;#39; =&#38;gt; $body));

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But this loads the remote response page into the page where where my form was. What I would like is to post the data to the remote page while redirecting to/loading that remote page as if the form had directly submitted to that page on Moneris. On the original site, when a user submits the form, it loads the appropriate page on the Moneris site where they enter their credit card info. They only come back to the original site after payment was completed. The original form gathers data on who they are, what they are paying for, etc.&#60;/p&#62;
&#60;p&#62;Is it possible to post the data to the remote URL while loading that remote page as well? I don't want or need to stay on the page the GF form is on.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-154623</link>
			<pubDate>Tue, 26 Feb 2013 00:25:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">154623@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That is correct.  Don't alter the form tag and don't redirect to moneris.  Just process the form like normal and accept the visitor's input, and then send the collected values to moneris with the gform_after_submission hook.&#60;/p&#62;
&#60;p&#62;We'll leave the topic open: no problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Stéphane Bergeron on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-154585</link>
			<pubDate>Mon, 25 Feb 2013 23:53:16 +0000</pubDate>
			<dc:creator>Stéphane Bergeron</dc:creator>
			<guid isPermaLink="false">154585@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Chris!&#60;/p&#62;
&#60;p&#62;As long as their is a way to do it with hooks or otherwise that's great. The first link you gave me seems to contain exactly the info and code I need to get this done.&#60;/p&#62;
&#60;p&#62;I have one more question for now. If I use the code in the second example which provides the remote URL to submit the data to, I suppose I need to set the actual form to submit normally and not to that 3rd party URL directly right?&#60;/p&#62;
&#60;p&#62;Thank you very much!&#60;/p&#62;
&#60;p&#62;(I would appreciate if you could leave this thread open for now if I have more questions regarding this specific process of sending form data to a third party)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-154577</link>
			<pubDate>Mon, 25 Feb 2013 23:47:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">154577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It's not possible to modify the field names and to continue to have Gravity Forms function properly.  To send your information to Moneris, you could use the gform_after_submission hook. &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There have been a couple of other discussions on Moneris I know of:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/tags/moneris&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/tags/moneris&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Stéphane Bergeron on "Can I set fields Name Attributes to my values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-set-fields-name-attributes-to-my-values#post-154337</link>
			<pubDate>Mon, 25 Feb 2013 16:10:13 +0000</pubDate>
			<dc:creator>Stéphane Bergeron</dc:creator>
			<guid isPermaLink="false">154337@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I've been trying to set a form today to replace one on the client's old basic PHP site. That form submits directly to Moneris for payment. Each field (hidden, text, etc) needs to have its name set to a specific string (ps_store_id, hpp_key, price1, etc) so the receiving page knows what to do with the values entered in those fields. &#60;/p&#62;
&#60;p&#62;The only threads I found on this topic were 1 or 2 years old and said this was not possible then, but I hope this has changed since as I think this would be a pretty common use case. When I use an external URL to submit the form I need to call the fields something the receiving script or page will recognize and know what to do with.&#60;/p&#62;
&#60;p&#62;I set the admin labels to the specific field names but the markup still shows &#34;input_4&#34; or whatever. It doesn't matter if the ID shows that but we need the name attributes to be modifiable. Is that possible with a hook or something?&#60;/p&#62;
&#60;p&#62;Thanks for any help you can provide!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
