<?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: How to get $form object or $entry object?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-form-object-or-entry-object</link>
		<description>Gravity Support Forums Topic: How to get $form object or $entry object?</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 11:51:17 +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/how-to-get-form-object-or-entry-object" rel="self" type="application/rss+xml" />

		<item>
			<title>Jive Software on "How to get $form object or $entry object?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-form-object-or-entry-object#post-74222</link>
			<pubDate>Thu, 06 Sep 2012 13:00:05 +0000</pubDate>
			<dc:creator>Jive Software</dc:creator>
			<guid isPermaLink="false">74222@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How to get $form object or $entry object?&#60;/p&#62;
&#60;p&#62;I am using a filter that does not pass the $form object or $entry object as an argument...&#60;br /&#62;
How can I access these from this filter?&#60;br /&#62;
Is there a function I can call?&#60;br /&#62;
I looked through the documentation but I did not see anything?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_field_standard_settings&#38;quot;, &#38;quot;my_marketo_settings&#38;quot;, 10, 2);

function my_marketo_settings($position, $form_id){

global $form;
global $entry;

echo &#38;#39;&#38;lt;pre&#38;gt;&#38;#39;;
print_r($form);
print_r($entry);
echo &#38;#39;&#38;lt;/pre&#38;gt;
&#38;#39;;

	if($position == 0) {
	?&#38;gt;
		&#38;lt;li class=&#38;quot;marketo_setting field_setting&#38;quot;&#38;gt;
				&#38;lt;label for=&#38;quot;field_marketo_label&#38;quot;&#38;gt;
						&#38;lt;?php _e(&#38;quot;Marketo Field Name&#38;quot;, &#38;quot;gravityforms&#38;quot;); ?&#38;gt;
						&#38;lt;?php
							gform_tooltip(&#38;quot;form_field_marketo_name&#38;quot;)
						?&#38;gt;
				&#38;lt;/label&#38;gt;
        &#38;lt;input type=&#38;quot;text&#38;quot;  id=&#38;quot;field_marketo_name&#38;quot; class=&#38;quot;fieldwidth-3&#38;quot; onfocus=&#38;quot;SetFieldProperty(&#38;#39;marketoName&#38;#39;, this.value);&#38;quot; value=&#38;quot;&#38;quot; size=&#38;quot;35&#38;quot;/&#38;gt;

	&#38;lt;?php
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_field_standard_settings&#38;quot;, &#38;quot;my_marketo_settings&#38;quot;, 10, 4);

function my_marketo_settings($position, $form_id, $form, $entry){

echo &#38;#39;&#38;lt;pre&#38;gt;&#38;#39;;
print_r($form);
print_r($entry);
echo &#38;#39;&#38;lt;/pre&#38;gt;&#38;#39;;

	if($position == 0) {
	?&#38;gt;
		&#38;lt;li class=&#38;quot;marketo_setting field_setting&#38;quot;&#38;gt;
				&#38;lt;label for=&#38;quot;field_marketo_label&#38;quot;&#38;gt;
						&#38;lt;?php _e(&#38;quot;Marketo Field Name&#38;quot;, &#38;quot;gravityforms&#38;quot;); ?&#38;gt;
						&#38;lt;?php
							gform_tooltip(&#38;quot;form_field_marketo_name&#38;quot;)
						?&#38;gt;
				&#38;lt;/label&#38;gt;
        &#38;lt;input type=&#38;quot;text&#38;quot;  id=&#38;quot;field_marketo_name&#38;quot; class=&#38;quot;fieldwidth-3&#38;quot; onfocus=&#38;quot;SetFieldProperty(&#38;#39;marketoName&#38;#39;, this.value);&#38;quot; value=&#38;quot;&#38;quot; size=&#38;quot;35&#38;quot;/&#38;gt;

	&#38;lt;?php
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_field_standard_settings&#38;quot;, &#38;quot;my_marketo_settings&#38;quot;, 10, 3);

function my_marketo_settings($position, $form_id){

$form = get_form_by_id( $form_id);
// Not sure how to get entry??

echo &#38;#39;&#38;lt;pre&#38;gt;&#38;#39;;
print_r($form);
echo &#38;#39;&#38;lt;/pre&#38;gt;&#38;#39;;

	if($position == 0) {
	?&#38;gt;
		&#38;lt;li class=&#38;quot;marketo_setting field_setting&#38;quot;&#38;gt;
				&#38;lt;label for=&#38;quot;field_marketo_label&#38;quot;&#38;gt;
						&#38;lt;?php _e(&#38;quot;Marketo Field Name&#38;quot;, &#38;quot;gravityforms&#38;quot;); ?&#38;gt;
						&#38;lt;?php
							gform_tooltip(&#38;quot;form_field_marketo_name&#38;quot;)
						?&#38;gt;
				&#38;lt;/label&#38;gt;

&#38;lt;input type=&#38;quot;text&#38;quot;  id=&#38;quot;field_marketo_name&#38;quot; class=&#38;quot;fieldwidth-3&#38;quot; onfocus=&#38;quot;SetFieldProperty(&#38;#39;marketoName&#38;#39;, this.value);&#38;quot; value=&#38;quot;&#38;quot; size=&#38;quot;35&#38;quot;/&#38;gt;

	&#38;lt;?php
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
