<?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: Display Data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/display-data</link>
		<description>Gravity Support Forums Topic: Display Data</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:32: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/display-data" rel="self" type="application/rss+xml" />

		<item>
			<title>flameboyuk on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-6219</link>
			<pubDate>Wed, 09 Jun 2010 22:45:43 +0000</pubDate>
			<dc:creator>flameboyuk</dc:creator>
			<guid isPermaLink="false">6219@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Anyone?&#60;br /&#62;
Does anyone have a snippet to output display the value for a specific Lead ID and Field No. in the database (without using custom fields)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>flameboyuk on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-6025</link>
			<pubDate>Thu, 03 Jun 2010 06:42:31 +0000</pubDate>
			<dc:creator>flameboyuk</dc:creator>
			<guid isPermaLink="false">6025@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there any way using a similar method to output a number of specific submitted fields (as I don't want to use custom fields)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-2493</link>
			<pubDate>Wed, 06 Jan 2010 18:20:27 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">2493@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here we go, try the following code.&#60;br /&#62;
You will need to replace $lead_id and $form_id with the right values.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_id = 18;
    $entry_id = 190;

    $form_meta = RGFormsModel::get_form_meta($form_id);
    $entry = RGFormsModel::get_lead($entry_id);

    echo &#38;quot;&#38;lt;hr/&#38;gt;Form Title: &#38;quot; . $form_meta[&#38;quot;title&#38;quot;] . &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;

    //displaying all submitted fields
    foreach($form_meta[&#38;quot;fields&#38;quot;] as $field){

       if(is_array($field[&#38;quot;inputs&#38;quot;])){

           //handling multi-input fields such as name and address
           foreach($field[&#38;quot;inputs&#38;quot;] as $input){
               $value = $entry[strval($input[&#38;quot;id&#38;quot;])];
               $label = RGFormsModel::get_label($field, $input[&#38;quot;id&#38;quot;]);
               echo $label . &#38;quot;: &#38;quot; . $value .  &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
           }
       }
       else{
           //handling single-input fields such as text and paragraph (textarea)
           $value = $entry[$field[&#38;quot;id&#38;quot;]];
           echo $field[&#38;quot;label&#38;quot;] . &#38;quot;: &#38;quot; . $value .  &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
       }
    }
    echo &#38;quot;&#38;lt;hr/&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-2463</link>
			<pubDate>Mon, 04 Jan 2010 13:32:55 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">2463@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;bloomkey,&#60;br /&#62;
I will come up with a code snippet and post it here when I have it.&#60;br /&#62;
It might take me a couple of days, but I will get it done.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-2459</link>
			<pubDate>Mon, 04 Jan 2010 11:43:38 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">2459@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The support team member that can best answer this question is currently traveling.  Once he is available he will respond back with information on how you can accomplish this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bloomkey on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-2452</link>
			<pubDate>Sun, 03 Jan 2010 23:42:35 +0000</pubDate>
			<dc:creator>bloomkey</dc:creator>
			<guid isPermaLink="false">2452@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using this code with exec-php plugin to get an idea for how it might output but nothing appears on the page:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$leadid=2;&#60;br /&#62;
global $wpdb;&#60;/p&#62;
&#60;p&#62; $results = $wpdb-&#38;gt;get_results($wpdb-&#38;gt;prepare(&#34;  SELECT l.*, field_number, value&#60;br /&#62;
                            FROM wp_rg_lead l&#60;br /&#62;
                            INNER JOIN wp_rg_lead_detail ld ON l.id = ld.lead_id&#60;br /&#62;
                            WHERE l.id=%d&#60;br /&#62;
                            ORDER BY  l.id, field_number&#34;, $leadid));&#60;/p&#62;
&#60;p&#62;    foreach($results as $result){&#60;br /&#62;
        echo &#34;&#60;hr /&#62;Entry Id: &#34; . $result-&#38;gt;id . &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
        echo &#34;Field Number: &#34; . $result-&#38;gt;field_number . &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
        echo &#34;Field Value: &#34; . $result-&#38;gt;value . &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
        ?&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bloomkey on "Display Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-data#post-2448</link>
			<pubDate>Sun, 03 Jan 2010 17:47:57 +0000</pubDate>
			<dc:creator>bloomkey</dc:creator>
			<guid isPermaLink="false">2448@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm having trouble figuring out the best way to output display the data captured in the rg_lead_detail table. Do you have any tips or instructions for showing the data on a separate webpage? Combining the rg_form_meta  with the data table is what I'm trying to accomplish so that I can display the labels and data side by side.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
