<?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 User Favorites: hunsford</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/hunsford'>hunsford</a></link>
		<description>Gravity Support Forums User Favorites: hunsford</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:08: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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Galaxico on "Append text to a custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-text-to-a-custom-field#post-3939</link>
			<pubDate>Fri, 12 Mar 2010 06:37:15 +0000</pubDate>
			<dc:creator>Galaxico</dc:creator>
			<guid isPermaLink="false">3939@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nevermind, I was checked the source code on the &#34;create form&#34; page and found it there =)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Galaxico on "Append text to a custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-text-to-a-custom-field#post-3938</link>
			<pubDate>Fri, 12 Mar 2010 05:27:26 +0000</pubDate>
			<dc:creator>Galaxico</dc:creator>
			<guid isPermaLink="false">3938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I am looking for this solution as well. This looks perfect, Alex. Thanks!&#60;/p&#62;
&#60;p&#62;One question I have is: In order to replace the &#34;24&#34; in $entry[24], where should I look to actually find the &#34;filed id&#34;? Thanks =)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Append text to a custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-text-to-a-custom-field#post-3539</link>
			<pubDate>Mon, 22 Feb 2010 12:53:40 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">3539@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you want to use the post_submission hook.&#60;br /&#62;
Try the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;create_custom_field&#38;quot;, 10, 2);
function create_custom_field($entry, $form){

    //NOTE: replace 1 with your actual form id
    if($form[&#38;quot;id&#38;quot;] != 1)
        return;

    //Getting file name.
    //NOTE: replace 24 (in $entry[24] with your actual field id
    list($image_url, $filename) = explode(&#38;quot;&#124;:&#124;&#38;quot;, $entry[24]);
    $pathinfo = pathinfo($image_url);
    $filename = $pathinfo[&#38;quot;basename&#38;quot;];

    //creating custom field
    $url = &#38;quot;http://your_photo_url/&#38;quot; . $filename;
    update_post_meta($entry[&#38;quot;post_id&#38;quot;], &#38;quot;your_custom_field&#38;quot;, $url);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>hunsford on "Append text to a custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-text-to-a-custom-field#post-3525</link>
			<pubDate>Mon, 22 Feb 2010 01:20:20 +0000</pubDate>
			<dc:creator>hunsford</dc:creator>
			<guid isPermaLink="false">3525@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Perhaps the presubmission handler or the post-submission handler would be more appropriate for what I wish to do.&#60;/p&#62;
&#60;p&#62;My form has a field where users can upload an image for a post (i.e., Post Fields - Image). From that field, I'd like to be able to take the file name, prepend the remainder of the image URL, and insert it into a custom field on the form (i.e., Post Fields - Custom Field). &#60;/p&#62;
&#60;p&#62;The end result would be that after the user uploads an image file and submits the form, one of the Gravity Form handlers could be used to build the URL to that image and insert it into a custom field in the post. Is this possible?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hunsford on "Append text to a custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-text-to-a-custom-field#post-3487</link>
			<pubDate>Fri, 19 Feb 2010 01:25:12 +0000</pubDate>
			<dc:creator>hunsford</dc:creator>
			<guid isPermaLink="false">3487@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My theme uses a URL stored in a custom post field to display images, and my goal is for users to be able to provide a file name in Gravity Forms to which I can then prepend the remainder of the image URL.&#60;/p&#62;
&#60;p&#62;I've reviewed a thread about appending fields to post content (&#60;a href=&#34;http://forum.gravityhelp.com/topic/question-on-post-forms)&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/question-on-post-forms)&#60;/a&#62;, which is similar to what I'm hoping to accomplish, but I can't seem to get the modifications right. I appreciate any help.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
