<?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 an item in my form only at specific times.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/display-an-item-in-my-form-only-at-specific-times</link>
		<description>Gravity Support Forums Topic: Display an item in my form only at specific times.</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 21:13:03 +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-an-item-in-my-form-only-at-specific-times" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Display an item in my form only at specific times."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-an-item-in-my-form-only-at-specific-times#post-69409</link>
			<pubDate>Fri, 03 Aug 2012 19:25:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69409@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Did you get this working somewhere? I would like to take a look at it.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>twescott on "Display an item in my form only at specific times."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-an-item-in-my-form-only-at-specific-times#post-69401</link>
			<pubDate>Fri, 03 Aug 2012 18:55:47 +0000</pubDate>
			<dc:creator>twescott</dc:creator>
			<guid isPermaLink="false">69401@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, this is quite helpful.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Display an item in my form only at specific times."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-an-item-in-my-form-only-at-specific-times#post-67199</link>
			<pubDate>Fri, 20 Jul 2012 06:45:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67199@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't think of a way to do this with conditional logic.  You could modify the form after it's displayed, using a little jQuery (the jQuery would say, essentially, &#34;if the current time is between 1600 and 2400, then hide this specific form field&#34;.)  The hiding could be done via CSS (display:none, using a custom class for that field.)&#60;/p&#62;
&#60;p&#62;Or, you could have two different forms: one for 0000 to 1600, and one from 1600 to 2400.  Then you can have logic in your page template or post/page to display one form or the other.  That would mean there are entries in two different places.  Maybe that's OK because you might want to handle them differently, different notifications?&#60;/p&#62;
&#60;p&#62;Maybe you could use the gform_field_css_class &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_css_class&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_css_class&#60;/a&#62; in a function to add a CSS class of &#34;hidden&#34; or &#34;afterhours&#34;, based on the current time.  It would be the same approach as with jQuery, but done in PHP in your theme's functions.php.  So, if the time of day is between 1600 and 2400, then add the CSS class of &#34;afterhours&#34; and your theme's stylesheet would already have the style like this to hide that field:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]
.afterhours {
	display:none;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You could get more specific with the selector but that was just a quick example. &#60;/p&#62;
&#60;p&#62;Do any of those ideas help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>twescott on "Display an item in my form only at specific times."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-an-item-in-my-form-only-at-specific-times#post-66943</link>
			<pubDate>Wed, 18 Jul 2012 17:23:21 +0000</pubDate>
			<dc:creator>twescott</dc:creator>
			<guid isPermaLink="false">66943@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can see the time variable for the whole form, giving me control of start date and time for my form.  This isn't quite what I need, though.&#60;/p&#62;
&#60;p&#62;I'd like to be able to display a specific item in my form based on a time variable.  It's a basic radio box item, but I don't want my users to see it between 4 PM and Midnight.&#60;/p&#62;
&#60;p&#62;Thoughts?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
