<?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: Programmatically submitting a form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/programmatically-submitting-a-form</link>
		<description>Gravity Support Forums Topic: Programmatically submitting a form?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 12:21:02 +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/programmatically-submitting-a-form" rel="self" type="application/rss+xml" />

		<item>
			<title>johnbeales on "Programmatically submitting a form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/programmatically-submitting-a-form#post-29496</link>
			<pubDate>Fri, 08 Jul 2011 13:54:17 +0000</pubDate>
			<dc:creator>johnbeales</dc:creator>
			<guid isPermaLink="false">29496@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd like to be able to programmatically submit a form, entirely within a function of mine. I'm doing this to take advantage of the PayPal addon.  I've been looking through the docs but haven't figured out how to do this.&#60;/p&#62;
&#60;p&#62;So, is there a way to do something like this? Here's some pseudo-code showing what I'd like to do:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_plugin_do_payment() {
    $form = new GravityFormForm($form_id);  // get some sort of form instance
    $form-&#38;gt;setField(1, &#38;#39;69.95&#38;#39;);  // then set some product/price fields, as needed for PayPal
    $form-&#38;gt;submit();  // submit the form, sending my user to PayPal to pay for his purchase, and firing the normal gform hooks.
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;John
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
