<?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: Auto-Populate the Post Title from Taxonomy &#38; Date</title>
		<link>https://legacy.forums.gravityhelp.com/topic/auto-populate-the-post-title-from-taxonomy-date</link>
		<description>Gravity Support Forums Topic: Auto-Populate the Post Title from Taxonomy &amp; Date</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 03:10:01 +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/auto-populate-the-post-title-from-taxonomy-date" rel="self" type="application/rss+xml" />

		<item>
			<title>Noel Green on "Auto-Populate the Post Title from Taxonomy &#38; Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-populate-the-post-title-from-taxonomy-date#post-61155</link>
			<pubDate>Fri, 01 Jun 2012 15:42:06 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">61155@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Got it.&#60;br /&#62;
For those interested, here's the way to do it...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_filter_6&#38;quot;, &#38;quot;add_title&#38;quot;);
function add_title($form){

if ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;28&#38;#39;) {
    $plan_title  = &#38;quot;Handwriting&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;29&#38;#39;) {
    $plan_title  = &#38;quot;History&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;31&#38;#39;) {
    $plan_title  = &#38;quot;Homeroom&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;27&#38;#39;) {
    $plan_title  = &#38;quot;Math&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;30&#38;#39;) {
    $plan_title  = &#38;quot;Science&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;26&#38;#39;) {
    $plan_title  = &#38;quot;Shirley English&#38;quot;;
} elseif ($_POST[&#38;quot;input_35&#38;quot;] == &#38;#39;25&#38;#39;) {
    $plan_title  = &#38;quot;SWR&#38;quot;;
}
	$plan_title .= &#38;quot; &#124; &#38;quot; . $_POST[&#38;#39;input_6&#38;#39;] . &#38;quot; - &#38;quot;;
    $plan_title .= $_POST[&#38;#39;input_7&#38;#39;];

    $form [&#38;quot;postTitleTemplate&#38;quot;] = $plan_title;
    $form [&#38;quot;postTitleTemplateEnabled&#38;quot;] = true;

    //returning modified form object
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Since it's coming from a taxonomy you have to reference the value ID # and give it a name (if you want a name.)  If anyone knows a better way to fix that, let me know... but this works.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Auto-Populate the Post Title from Taxonomy &#38; Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-populate-the-post-title-from-taxonomy-date#post-61018</link>
			<pubDate>Thu, 31 May 2012 14:10:53 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">61018@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;AH!  &#60;/p&#62;
&#60;p&#62;Yes, I had the field hidden... I had not yet (remembered?) tried pre_submission!&#60;/p&#62;
&#60;p&#62;Brilliant!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Auto-Populate the Post Title from Taxonomy &#38; Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-populate-the-post-title-from-taxonomy-date#post-61016</link>
			<pubDate>Thu, 31 May 2012 14:06:36 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">61016@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could include a hidden field that is your post title, and then using gform_pre_submission you could merge the three form fields into your title. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Auto-Populate the Post Title from Taxonomy &#38; Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-populate-the-post-title-from-taxonomy-date#post-60907</link>
			<pubDate>Wed, 30 May 2012 23:09:28 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">60907@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So... I have a form that let's the user select a &#34;Start Date&#34;, &#34;End Date&#34; and a &#34;Subject&#34; (it's for a school).  The &#34;Subject&#34; is a list generated by a set of custom taxonomies. The &#34;Start&#34; and &#34;End&#34; dates right to custom fields &#34;start_date&#34; and &#34;end_date&#34;.  What I would like to do is auto-populate the post Title so that it is: &#34;subject-start_date-end_date&#34;.  Or some format similar thereof.&#60;/p&#62;
&#60;p&#62;The problem I'm running into is neither the date-picker field nor the taxonomy allow for &#34;create content template&#34; to work.  If they did this would be a no-brainer.  But as it is I have yet to figure it out.&#60;/p&#62;
&#60;p&#62;Thoughts?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
