<?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: Alter form input string</title>
		<link>https://legacy.forums.gravityhelp.com/topic/alter-form-input-string</link>
		<description>Gravity Support Forums Topic: Alter form input string</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:24:28 +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/alter-form-input-string" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Alter form input string"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alter-form-input-string#post-58050</link>
			<pubDate>Mon, 07 May 2012 15:12:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">58050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Part of the issue is that you've put the code in the wrong spot. Please check this out:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>haakonflender on "Alter form input string"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alter-form-input-string#post-58049</link>
			<pubDate>Mon, 07 May 2012 15:08:48 +0000</pubDate>
			<dc:creator>haakonflender</dc:creator>
			<guid isPermaLink="false">58049@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the reply,&#60;br /&#62;
But will this mess up the file uploading process?&#60;/p&#62;
&#60;p&#62;Either way I could not get it to work. I did the following on form_display.php&#60;br /&#62;
...&#60;br /&#62;
 else{&#60;br /&#62;
                //pre submission action&#60;br /&#62;
                do_action(&#34;gform_pre_submission&#34;, $form);&#60;br /&#62;
                do_action(&#34;gform_pre_submission_{$form[&#34;id&#34;]}&#34;, $form);&#60;br /&#62;
              &#60;strong&#62;  do_action(&#34;gform_pre_submission&#34;, &#34;pre_submission_handler&#34;);&#60;/p&#62;
&#60;p&#62;                function pre_submission_handler($form){&#60;br /&#62;
                    $_POST[&#34;input_6&#34;] = &#34;new value for field 6&#34;;&#60;br /&#62;
                } &#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Shouldnt I see &#34;new value for field 6&#34; in my post?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Alter form input string"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alter-form-input-string#post-57740</link>
			<pubDate>Fri, 04 May 2012 10:25:53 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">57740@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would want to use the following hook:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then you could take the file URL and wrap it in whatever you like before you send it to the database.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>haakonflender on "Alter form input string"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/alter-form-input-string#post-57696</link>
			<pubDate>Fri, 04 May 2012 04:48:18 +0000</pubDate>
			<dc:creator>haakonflender</dc:creator>
			<guid isPermaLink="false">57696@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a  form that posts into my blog. It has a file upload field that users upload their movies with. My webserver formats the video file to HTML5 compatible format and to display that video to visitors it needs to be in the format [video src=&#34;http://www.mysite.com/video&#34;]. But the gravity form file uploader posts the complete URL like &#60;a href=&#34;http://www.mysite.com/video.mov&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/video.mov&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;how can I alter the URL that the file uploader creates to the shortcode I need it to be? Is gform_field_input the right way? An example would ofcourse be very much appreciated. :)&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
