<?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: Time Field to Default to PM, not AM</title>
		<link>https://legacy.forums.gravityhelp.com/topic/time-field-to-default-to-pm-not-am</link>
		<description>Gravity Support Forums Topic: Time Field to Default to PM, not AM</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:13:49 +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/time-field-to-default-to-pm-not-am" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Time Field to Default to PM, not AM"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/time-field-to-default-to-pm-not-am#post-266121</link>
			<pubDate>Tue, 21 May 2013 16:18:58 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">266121@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Bella,&#60;/p&#62;
&#60;p&#62;You're welcome, add the following to your functions.php file and remove the earlier script from your page.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_pre_render&#38;#39;,&#38;#39;set_time_pm&#38;#39;);
function set_time_pm($form){
?&#38;gt;
&#38;lt;script&#38;gt;
    jQuery(document).ready(function($){
        $(&#38;#39;.gfield_time_ampm select&#38;#39;).val(&#38;#39;pm&#38;#39;);
    });
&#38;lt;/script&#38;gt;
&#38;lt;?php
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As it is the above function will print the script on all forms, if you only wanted it to appear on form 4 for example you would edit the add action so it looks like this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_pre_render_4&#38;#39;,&#38;#39;set_time_pm&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;if you wanted to target forms 4 and 7 for example you would add a second add action for form seven like so&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_pre_render_4&#38;#39;,&#38;#39;set_time_pm&#38;#39;);
add_action(&#38;#39;gform_pre_render_7&#38;#39;,&#38;#39;set_time_pm&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bella_xo on "Time Field to Default to PM, not AM"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/time-field-to-default-to-pm-not-am#post-266097</link>
			<pubDate>Tue, 21 May 2013 15:57:00 +0000</pubDate>
			<dc:creator>Bella_xo</dc:creator>
			<guid isPermaLink="false">266097@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Richard, that worked a treat!&#60;/p&#62;
&#60;p&#62;Yes I do have more than one form requiring the change so if not too much trouble I would love a script for the functions.php.&#60;/p&#62;
&#60;p&#62;Many thanks in advance for your help, much appreciated!&#60;/p&#62;
&#60;p&#62;Bella
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Time Field to Default to PM, not AM"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/time-field-to-default-to-pm-not-am#post-264978</link>
			<pubDate>Tue, 21 May 2013 05:18:07 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">264978@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Bella,&#60;/p&#62;
&#60;p&#62;Try the following script, you can add it above or below the form embed shortcode on the page containing your form.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
jQuery(document).ready(function($) {
    $(&#38;#39;#input_4_13_3&#38;#39;).val(&#38;#39;pm&#38;#39;);
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The above will just work on that specific time field, if you have time fields on multiple forms which you want to do the same for then I can adjust the script and create a function that you could place in your functions.php file.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bella_xo on "Time Field to Default to PM, not AM"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/time-field-to-default-to-pm-not-am#post-264610</link>
			<pubDate>Tue, 21 May 2013 03:03:07 +0000</pubDate>
			<dc:creator>Bella_xo</dc:creator>
			<guid isPermaLink="false">264610@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I would like the time field to Default to PM, not AM. Is this possible?&#60;/p&#62;
&#60;p&#62;URL - &#60;a href=&#34;http://www.diskman.net/clients/dreams/packages/gold-party-package-registration/&#34; rel=&#34;nofollow&#34;&#62;http://www.diskman.net/clients/dreams/packages/gold-party-package-registration/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks, &#60;/p&#62;
&#60;p&#62;Bella
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
