<?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: Retrive Form Object Data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/retrive-form-object-data</link>
		<description>Gravity Support Forums Topic: Retrive Form Object Data</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 17:29:05 +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/retrive-form-object-data" rel="self" type="application/rss+xml" />

		<item>
			<title>Idealien on "Retrive Form Object Data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/retrive-form-object-data#post-40625</link>
			<pubDate>Wed, 09 Nov 2011 14:49:13 +0000</pubDate>
			<dc:creator>Idealien</dc:creator>
			<guid isPermaLink="false">40625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What is the best way to retrieve a forms' advanced properties - scheduled closing time in particular - from a page template that does not display the form?&#60;/p&#62;
&#60;p&#62;I have a form that submits custom post type entries and a separate page template that displays them. I'd like to indicate whether submissions are still possible w/o them having to go to the form to find out.&#60;/p&#62;
&#60;p&#62;For comparison, the following code works when called from the gform_validation hook:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//Confirm end of auction + current server time
$auctionCloseTime = strtotime($form[&#38;#39;scheduleEnd&#38;#39;] . &#38;quot; &#38;quot; . $form[&#38;#39;scheduleEndHour&#38;#39;] . &#38;quot;:&#38;quot; . $form[&#38;#39;scheduleEndMinute&#38;#39;] . &#38;quot; &#38;quot; . $form[&#38;#39;scheduleEndAmpm&#38;#39;] . &#38;quot; EST&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and this code does similar check for a custom field date / time specific to the individual post type to apply a CSS class.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $closeEarlyDateTime = get_post_meta($post-&#38;gt;ID, &#38;quot;closeEarlyDateTime&#38;quot;, true);
$closeEarlyDateTime = strtotime($closeEarlyDate . &#38;quot; EST&#38;quot;);
$currentTime = strtotime(date(&#38;#39;m/d/Y h:i a&#38;#39;));

if ($closeEarlyDateTime &#38;amp;&#38;amp; $currentTime &#38;gt; $closeEarlyDateTime) {
	$thumbnailClass = &#38;quot;thumbnailClosed&#38;quot;;
} else {
	$thumbnailClass = &#38;quot;thumbnail&#38;quot;;
} 

?&#38;gt;
&#38;lt;div class=&#38;quot;&#38;lt;?php echo $thumbnailClass; ?&#38;gt;&#38;quot;&#38;gt;
	&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot;&#38;gt;
	&#38;lt;?php the_post_thumbnail(); ?&#38;gt;
	&#38;lt;/a&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
