<?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: Problem with default values</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values</link>
		<description>Gravity Support Forums Topic: Problem with default values</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:28:43 +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/problem-with-default-values" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-371350</link>
			<pubDate>Tue, 09 Jul 2013 13:49:52 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">371350@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sgarten on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-368992</link>
			<pubDate>Mon, 08 Jul 2013 18:03:43 +0000</pubDate>
			<dc:creator>sgarten</dc:creator>
			<guid isPermaLink="false">368992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Richard, that did the trick.  Thank you again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-358013</link>
			<pubDate>Tue, 02 Jul 2013 13:57:01 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">358013@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you go to the Gravity Forms general settings page and make sure 'Output HTML5' is set to 'Yes', then edit your form and make sure you are using an email field (advanced fields panel) and not a single line text field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sgarten on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-357999</link>
			<pubDate>Tue, 02 Jul 2013 13:47:47 +0000</pubDate>
			<dc:creator>sgarten</dc:creator>
			<guid isPermaLink="false">357999@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, Richard that worked to hide the error notifications.  The only issue now is this:&#60;/p&#62;
&#60;p&#62;The form does not require a full email address.  Try typing in just any only characters and it will accept whatever you put in.&#60;/p&#62;
&#60;p&#62;How do I make the email box accept only full emails like: &#60;a href=&#34;mailto:email@email.com&#34;&#62;email@email.com&#60;/a&#62;?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-357140</link>
			<pubDate>Tue, 02 Jul 2013 03:37:23 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">357140@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would use CSS to hide the error notifications, you can find examples of how to target the various elements of Gravity Forms with CSS in the documentation, the following link is for the section regarding validation errors &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples#Validation_Errors&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples#Validation_Errors&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Try adding the following to your theme stylesheet or wherever you add custom CSS&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#gform_wrapper_13 .validation_error, #gform_wrapper_13 .gform_body .gform_fields .gfield_error .validation_message {
    display:none !important;
}
#gform_wrapper_13 li.gfield.gfield_error.gfield_contains_required {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
#gform_wrapper_13 li.gfield.gfield_error.gfield_contains_required div.ginput_container {
    margin-top: 0 !important;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sgarten on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-356165</link>
			<pubDate>Mon, 01 Jul 2013 16:28:55 +0000</pubDate>
			<dc:creator>sgarten</dc:creator>
			<guid isPermaLink="false">356165@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, Richard.&#60;/p&#62;
&#60;p&#62;That did the trick.  Only issue now is that it error notifications make the page look all messy.&#60;/p&#62;
&#60;p&#62;Is there a way, perhaps via css, to turn off the error messages?  In other words, I still want the two fields &#34;required&#34;, but if a user doesn't fill them out correctly I just want for the form not to process.&#60;/p&#62;
&#60;p&#62;I greatly appreciate your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-355869</link>
			<pubDate>Mon, 01 Jul 2013 12:45:23 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">355869@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You might try using a placeholder plugin rather than faking the placeholders with the default value.  I think there are currently two plugins in the WordPress plugin repository&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-placeholders/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/gravity-forms-placeholders/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sgarten on "Problem with default values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-default-values#post-355802</link>
			<pubDate>Mon, 01 Jul 2013 11:48:27 +0000</pubDate>
			<dc:creator>sgarten</dc:creator>
			<guid isPermaLink="false">355802@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Can you please help me with my code?  I would like to specifically know what code to use and where to put the code.  I think I should put it in functions.css.&#60;/p&#62;
&#60;p&#62;You can view the form at &#60;a href=&#34;http://www.virtuecard.org&#34; rel=&#34;nofollow&#34;&#62;http://www.virtuecard.org&#60;/a&#62;. All I want, are for the fields to be required, but since I'm using default values someone can click the &#34;request an invitation&#34; button and it will submit the default values of &#34;name&#34; and &#34;email&#34;.  Instead, I'd like it to present an error message if the default values are presented.&#60;/p&#62;
&#60;p&#62;-----&#60;br /&#62;
The form ID is 13 and the &#34;name&#34; field is field 4 and the &#34;email&#34; field is field 3.&#60;/p&#62;
&#60;p&#62;Here's the code I added to my functions.php file that didn't work. I only attempted fixing field 4, but since that didn't work, I didn't code out for field 3 yet.&#60;br /&#62;
-----&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;add_filter('gform_validation_13', 'custom_validation');&#60;br /&#62;
function custom_validation($validation_result){&#60;br /&#62;
$form = $validation_result[&#34;form&#34;];&#60;/p&#62;
&#60;p&#62;//supposing we don't want input 1 to be a value of 86&#60;br /&#62;
if($_POST['input_4'] == name){&#60;/p&#62;
&#60;p&#62;// set the form validation to false&#60;br /&#62;
$validation_result[&#34;is_valid&#34;] = false;&#60;/p&#62;
&#60;p&#62;//finding Field with ID of 1 and marking it as failed validation&#60;br /&#62;
foreach($form[&#34;fields&#34;] as &#38;amp;$field){&#60;/p&#62;
&#60;p&#62;//NOTE: replace 1 with the field you would like to validate&#60;br /&#62;
if($field[&#34;id&#34;] == &#34;4&#34;){&#60;br /&#62;
$field[&#34;failed_validation&#34;] = true;&#60;br /&#62;
$field[&#34;validation_message&#34;] = &#34;This field is invalid!&#34;;&#60;br /&#62;
break;&#60;br /&#62;
}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;//Assign modified $form object back to the validation result&#60;br /&#62;
$validation_result[&#34;form&#34;] = $form;&#60;br /&#62;
return $validation_result;&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;?&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
