<?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: Captcha default value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value</link>
		<description>Gravity Support Forums Topic: Captcha default value</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:02:45 +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/captcha-default-value" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-66100</link>
			<pubDate>Fri, 13 Jul 2012 10:02:37 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">66100@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are correct about it not existing for Normal mode. It does exist for simple mode. You could then create a quick validation hook to test against those default values using:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Basically the same as how you put the value in, you can test against those values and pass back an error if someone keeps them as the defaults.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-66092</link>
			<pubDate>Fri, 13 Jul 2012 09:35:19 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">66092@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Thanks for your response.&#60;/p&#62;
&#60;p&#62;But default values do not exist on name field in 'Normal mode' - &#60;a href=&#34;http://i.imgur.com/g6esD.png&#34; title=&#34;&#34; rel=&#34;nofollow&#34;&#62;see screenshot&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So I have resorted to using this...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_field_value_first_name&#38;#39;, &#38;#39;first_name_population_function&#38;#39;);
function first_name_population_function($value){
    return &#38;#39;First Name&#38;#39;;
}
add_filter(&#38;#39;gform_field_value_last_name&#38;#39;, &#38;#39;last_name_population_function&#38;#39;);
function last_name_population_function($value){
    return &#38;#39;Last Name&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But is not great because the form thinks 'First Name' and 'Last Name' are actual entries if someone submits the form without actually filling it in.&#60;/p&#62;
&#60;p&#62;This is why I need default values... &#60;a href=&#34;http://i.imgur.com/zDGsR.png&#34; title=&#34;&#34; rel=&#34;nofollow&#34;&#62;see my form&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65971</link>
			<pubDate>Thu, 12 Jul 2012 13:01:39 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">65971@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can't use POST for fields that haven't been loaded yet. &#60;/p&#62;
&#60;p&#62;You want to look at the documentation on this hook here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And you can set default values on most fields. Go to Advanced for any field and most of them should include an option to set a default value from within the form builder.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65969</link>
			<pubDate>Thu, 12 Jul 2012 12:38:09 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">65969@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK fair enough I can see what you mean as it is a third party thing.&#60;/p&#62;
&#60;p&#62;No option for dynamic population so I will just use jQuery - not a problem.&#60;/p&#62;
&#60;p&#62;Whilst we are on topic, how can I use this pre form rendering on the name field (normal mode)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// PRE FORM RENDERING
add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_subscribe_value&#38;#39;);
function add_subscribe_value($form){
    $_POST[&#38;#39;input_1_3&#38;#39;] = &#38;#39;First Name&#38;#39;;
    $_POST[&#38;#39;input_1_6&#38;#39;] = &#38;#39;Last Name&#38;#39;;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is what I have tried above?&#60;/p&#62;
&#60;p&#62;I think gravity forms should allow default value on everything. It allows default value on on name field (simple mode).&#60;/p&#62;
&#60;p&#62;Thank you for your time.&#60;/p&#62;
&#60;p&#62;Josh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65948</link>
			<pubDate>Thu, 12 Jul 2012 10:16:21 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">65948@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't know if you can pass a value like that to the Really Simple Captcha plugin and have it work as default. Do you have any documentation on Really Simple Captcha related to setting a default value? In Gravity Forms, on a normal field, I would just ask if you had Allow Populate Dynamically checked in the field settings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65946</link>
			<pubDate>Thu, 12 Jul 2012 10:09:41 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">65946@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any suggestions on this please?&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65756</link>
			<pubDate>Wed, 11 Jul 2012 09:49:18 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">65756@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Thanks for quick response.&#60;/p&#62;
&#60;p&#62;See on a previous website, I used this hook to add a default value to my confirm email field.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_confirm_value&#38;#39;);
function add_confirm_value($form){

    $_POST[&#38;#39;input_6_2&#38;#39;] = &#38;#39;Confirm Your E-mail&#38;#39;;

    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This worked great. So thought if I used this same hook I could do the same on the captcha input.&#60;/p&#62;
&#60;p&#62;The form/website is hidden at the mo, can't share.&#60;/p&#62;
&#60;p&#62;But this is the code of my form #gform_1. &#60;a href=&#34;http://i.imgur.com/10Pu6.png&#34; rel=&#34;nofollow&#34;&#62;Screenshot&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I know how I could do this with jquery but if there was a PHP way of doing it then that would be cool.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65749</link>
			<pubDate>Wed, 11 Jul 2012 09:14:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">65749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;$_POST is not available in gform_pre_render.  Changing that value is not possible and would not work in your case.&#60;/p&#62;
&#60;p&#62;Please see this documentation:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What is the field which holds the value you want to change? Can you post a link to your form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Captcha default value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-default-value#post-65734</link>
			<pubDate>Wed, 11 Jul 2012 08:07:38 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">65734@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am using Really Simple Captcha plugin for my captcha field.&#60;/p&#62;
&#60;p&#62;How ever I can't seem change the default value using 'gform_pre_render'&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// FORM FOOTER CAPTCHA
add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_captcha_value&#38;#39;);
function add_captcha_value($form){
    $_POST[&#38;#39;input_4&#38;#39;] = &#38;#39;Please enter captcha&#38;#39;;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;See form source... &#60;a href=&#34;http://i.imgur.com/10Pu6.png&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/10Pu6.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I cant get any field pre-rendering to apply?&#60;/p&#62;
&#60;p&#62;Also how can I get this hook to only apply to my footer form?&#60;/p&#62;
&#60;p&#62;Any help would be much appreciated, thank you for your time.&#60;/p&#62;
&#60;p&#62;Josh
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
