<?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: Get question from form for use in post_submission_handler</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler</link>
		<description>Gravity Support Forums Topic: Get question from form for use in post_submission_handler</description>
		<language>en-US</language>
		<pubDate>Fri, 24 Apr 2026 13:15: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/get-question-from-form-for-use-in-post_submission_handler" rel="self" type="application/rss+xml" />

		<item>
			<title>sccr410 on "Get question from form for use in post_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler#post-20697</link>
			<pubDate>Wed, 16 Mar 2011 13:32:56 +0000</pubDate>
			<dc:creator>sccr410</dc:creator>
			<guid isPermaLink="false">20697@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Perfect, thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Get question from form for use in post_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler#post-20676</link>
			<pubDate>Wed, 16 Mar 2011 09:55:28 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">20676@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;send_to_third_party&#38;quot;, 10, 2);
function send_to_third_party($entry, $form){
    $notes = &#38;quot;&#38;quot;;
    foreach($form[&#38;quot;fields&#38;quot;] as $field){
        $value = RGFormsModel::get_lead_field_value($entry, $field);
        if(RGFormsModel::get_input_type($field) == &#38;quot;checkbox&#38;quot;)
            $notes .= $field[&#38;quot;label&#38;quot;] . &#38;quot;: &#38;quot; . implode(&#38;quot;, &#38;quot;, array_values($value)) . &#38;quot;\n&#38;quot;;
        else
            $notes .= $field[&#38;quot;label&#38;quot;] . &#38;quot;: &#38;quot; . GFCommon::get_lead_field_display($field, $value) . &#38;quot;\n&#38;quot;;
    }

    //Send $notes to third party
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sccr410 on "Get question from form for use in post_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler#post-20637</link>
			<pubDate>Tue, 15 Mar 2011 17:27:47 +0000</pubDate>
			<dc:creator>sccr410</dc:creator>
			<guid isPermaLink="false">20637@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In a general Notes field, I want to send data like:&#60;/p&#62;
&#60;p&#62;Question: Answer&#60;/p&#62;
&#60;p&#62;So, example: &#60;/p&#62;
&#60;p&#62;Method of Contact: Phone&#60;br /&#62;
Business URL: &#60;a href=&#34;http://www.domain.com&#34; rel=&#34;nofollow&#34;&#62;http://www.domain.com&#60;/a&#62;&#60;br /&#62;
Services: Web design, SEO, Logo Design
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Get question from form for use in post_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler#post-20636</link>
			<pubDate>Tue, 15 Mar 2011 17:21:16 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">20636@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can send you a code snippet to point you in the right direction. Can you give me a little more information on how you would want the data formatted? I understand you want a Question - Answer format of some sort, but can you be a little more specific? Especially for the checkbox field, where there could be more than one answer for each question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sccr410 on "Get question from form for use in post_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-question-from-form-for-use-in-post_submission_handler#post-20568</link>
			<pubDate>Mon, 14 Mar 2011 18:45:51 +0000</pubDate>
			<dc:creator>sccr410</dc:creator>
			<guid isPermaLink="false">20568@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to write a script that takes the form data and sends it to a 3rd party CRM. I have a &#34;Notes&#34; box where most of the data needs to go, but I need to somehow get what the question is to include in the Notes box.&#60;/p&#62;
&#60;p&#62;The $entry array only has field IDs, and for radio/checkboxes it does decimal numbers for each option. This means I can't even manually include in the script a direct relationship because I could have array indexes 17.3, 17.4, 17.9 - I don't know for sure which index IDs will even be available.&#60;/p&#62;
&#60;p&#62;How can I simply grab Question/Answer and send it to this CRM?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
