<?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: SMS API Gateway - Need help to get GForm to integrate</title>
		<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate</link>
		<description>Gravity Support Forums Topic: SMS API Gateway - Need help to get GForm to integrate</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:39:44 +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/sms-api-gateway-need-help-to-get-gform-to-integrate" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Bliss on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-19655</link>
			<pubDate>Tue, 01 Mar 2011 13:19:02 +0000</pubDate>
			<dc:creator>Carl Bliss</dc:creator>
			<guid isPermaLink="false">19655@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-19653</link>
			<pubDate>Tue, 01 Mar 2011 13:12:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19653@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The id is assigned to the field when you add it to your form.  It doesn't change when you re-order your form so it's not really based on the placement. It's based on the order it was added to the form.  Currently the field is is the only way to interact with fields when using hooks and accessing the entry object.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Bliss on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-19648</link>
			<pubDate>Tue, 01 Mar 2011 12:59:13 +0000</pubDate>
			<dc:creator>Carl Bliss</dc:creator>
			<guid isPermaLink="false">19648@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am implementing an API connection with a number of existing forms. I want to add a hidden field to the forms that we DON'T want to have use the API.  Is there a way to call entry fields by name rather than placement? &#60;/p&#62;
&#60;p&#62;For instance, if I set a hidden field in position 8, to flag the API to not execute for that form, my code would look something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($entry[&#38;quot;8&#38;quot;] != 1) {
//DO Cool Stuff Here
}&#38;#39;

But that would only work as long as it&#38;#39;s the 8th field on the form. Is it possible to reference the field name (in this example the field name would be &#38;quot;api_ready&#38;quot;) (something like:

&#38;#39;if ($entry[&#38;quot;api_ready&#38;quot;] != 1) {
//Do Cool Stuff Here
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Does that make sense?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-18087</link>
			<pubDate>Wed, 09 Feb 2011 15:23:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18087@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would want to use the gform_post_submission hook which has access to the Entry object.  The Entry object all data from a submitted form.&#60;/p&#62;
&#60;p&#62;You can use the gform_post_submission 2 different ways.&#60;/p&#62;
&#60;p&#62;If you want to apply the code to ALL forms you would use it this way:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;post_submission&#38;quot;, 10, 2);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you want to apply the code to a SPECIFIC form you would use it this way, this example would target form id 5:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission_5&#38;quot;, &#38;quot;post_submission&#38;quot;, 10, 2);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here is an example of the gform_post_submission in action, this example uses the gform_post_submission hook to change the post content, adding values from submitted fields, including an image field.  It doesn't do what you want it to do, it's purely an example of the gform_post_submission usage:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($entry, $form){

//getting post
$post = get_post($entry[&#38;quot;post_id&#38;quot;]);

//changing post content
$post-&#38;gt;post_content = &#38;quot;Blender Version:&#38;quot; . $entry[7] . &#38;quot;&#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[8] . &#38;quot;&#38;#39;&#38;gt; &#38;lt;br/&#38;gt; &#38;lt;br/&#38;gt; &#38;quot; . $entry[13] . &#38;quot; &#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[5] . &#38;quot;&#38;#39;&#38;gt;&#38;quot;;

//updating post
wp_update_post($post);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The gform_post_submission hook has access to the Entry object.  Here are examples:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry[&#38;quot;date_created&#38;quot;];   //returns the entry date
$entry[&#38;quot;1&#38;quot;];              //returns the value associated with field 1
$entry[&#38;quot;2.4&#38;quot;];            //returns the value associated with the street input for the address field 2&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So you would use the field id OR keywords for default data associated with the entry.  These keywords are:&#60;/p&#62;
&#60;p&#62;- id&#60;br /&#62;
- date_created&#60;br /&#62;
- is_starred&#60;br /&#62;
- is_read&#60;br /&#62;
- ip&#60;br /&#62;
- source_url&#60;br /&#62;
- post_id&#60;br /&#62;
- FIELD_ID&#60;/p&#62;
&#60;p&#62;If this is all greek to you... then hiring a WordPress consultant to do the implementation may not be a bad idea.  I would recommend:&#60;/p&#62;
&#60;p&#62;Ounce of Talent&#60;br /&#62;
&#60;a href=&#34;http://www.ounceoftalent.com&#34; rel=&#34;nofollow&#34;&#62;http://www.ounceoftalent.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;WebDevStudios&#60;br /&#62;
&#60;a href=&#34;http://www.webdevstudios.com&#34; rel=&#34;nofollow&#34;&#62;http://www.webdevstudios.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jamesalexmsg on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-18083</link>
			<pubDate>Wed, 09 Feb 2011 15:06:41 +0000</pubDate>
			<dc:creator>jamesalexmsg</dc:creator>
			<guid isPermaLink="false">18083@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl.. Yeah - sure thing bud... was thinking it might be a bit too much to do myself!&#60;/p&#62;
&#60;p&#62;If you can give me a nudge in the right direction regarding the hook i will have a look.&#60;/p&#62;
&#60;p&#62;Worst case If you have details of someone i could speak to also that would be great as these things can take weeks off your life hey!.&#60;/p&#62;
&#60;p&#62;Jamie
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-18080</link>
			<pubDate>Wed, 09 Feb 2011 14:40:14 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18080@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would use the gform_post_submission hook to do this, which has access to the entry data from the entry that is created.  I can give you an example of how to use the gform_post_submission hook but I can't write the code to integrate with the 3rd party service.  That is much too involved for a standard support request.&#60;/p&#62;
&#60;p&#62;Have you considered paying a WordPress consultant to do this customization for you? I can recommend a WordPRess consultant with Gravity Forms development/customization experience who could assist you with this code if you wanted to go down that route.  You could at least get a quote from them on how much it would cost for the integration.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jamesalexmsg on "SMS API Gateway - Need help to get GForm to integrate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sms-api-gateway-need-help-to-get-gform-to-integrate#post-18043</link>
			<pubDate>Wed, 09 Feb 2011 06:08:28 +0000</pubDate>
			<dc:creator>jamesalexmsg</dc:creator>
			<guid isPermaLink="false">18043@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Guys.. have tried studying other posts but this is nails!&#60;/p&#62;
&#60;p&#62;I have an account with a text message service &#60;a href=&#34;http://www.txtlocal.co.uk/developers/code/&#34; rel=&#34;nofollow&#34;&#62;http://www.txtlocal.co.uk/developers/code/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;To connect to the API, you can POST or GET your query to the URL:&#60;br /&#62;
&#60;a href=&#34;http://www.txtlocal.com/sendsmspost.php&#34; rel=&#34;nofollow&#34;&#62;http://www.txtlocal.com/sendsmspost.php&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Ive read through some of the Hook posts and guess i need to add to the functions.php file but struggling to put the code together. They provide codes to use but cant work out how they combine . An example is;&#60;br /&#62;
This example uses the cURL library, please ensure it is enabled on your server.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1621945&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1621945&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Any ideas? Real sorry to ask as i know its on here somewhere!&#60;/p&#62;
&#60;p&#62;Jamie
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
