<?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: No Duplicates - custom validation message</title>
		<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message</link>
		<description>Gravity Support Forums Topic: No Duplicates - custom validation message</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 05:36:11 +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/no-duplicates-custom-validation-message" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-104457</link>
			<pubDate>Wed, 19 Dec 2012 10:12:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">104457@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Closing this as a duplicate of your new topic here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/change-no-duplicate-validation-message-on-email-field&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/change-no-duplicate-validation-message-on-email-field&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>merchantguru on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-101370</link>
			<pubDate>Tue, 11 Dec 2012 18:30:09 +0000</pubDate>
			<dc:creator>merchantguru</dc:creator>
			<guid isPermaLink="false">101370@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In version 1.6.10, this is still an issue. I.e., Carl's remarks above about how the custom validation message should override the validation message when there's a duplicate error, but this is not the case. Any update on how to change the validation message for duplicate field entries?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>atomicsmash on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-77413</link>
			<pubDate>Wed, 26 Sep 2012 05:30:58 +0000</pubDate>
			<dc:creator>atomicsmash</dc:creator>
			<guid isPermaLink="false">77413@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Has there been any update with this?&#60;/p&#62;
&#60;p&#62;Many thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-50764</link>
			<pubDate>Mon, 27 Feb 2012 21:19:37 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">50764@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl, I second this to, would be useful&#60;/p&#62;
&#60;p&#62;For future versions, it would be good to put a another validation message input underneath the first validation message input, but only if the 'no duplicates' option is selected. Also have it so the duplicate email variable can be used.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>clickmarketing on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-48690</link>
			<pubDate>Wed, 08 Feb 2012 10:09:46 +0000</pubDate>
			<dc:creator>clickmarketing</dc:creator>
			<guid isPermaLink="false">48690@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl, &#60;/p&#62;
&#60;p&#62;Any updates about this? I also would like to change the validation message in the no-duplicate field in my form. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-19011</link>
			<pubDate>Sat, 19 Feb 2011 18:39:23 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19011@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Outside of the gform_validation hook, there isn't a hook just to change the validation message.  That is what the custom validation message option is for and it will be corrected in the next release to override the no duplicates validation message as well as the required field message.  So I would suggest waiting for the next release and using the custom validation message option which is what it is designed for.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stephan.wehmeier on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-18992</link>
			<pubDate>Sat, 19 Feb 2011 13:12:16 +0000</pubDate>
			<dc:creator>stephan.wehmeier</dc:creator>
			<guid isPermaLink="false">18992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can I do something like this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_dupli_validation_message&#38;#39;, &#38;#39;change_message&#38;#39;, 10, 2);
function change_message($message, $form){
return &#38;#39;Custom Error Message&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or do I really need to rebuild the whole No Duplicate script just to change the text oft the error message?&#60;br /&#62;
If this is the case, are there examples of how to recode the No Duplicate script? Any Hints?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-18976</link>
			<pubDate>Fri, 18 Feb 2011 22:18:53 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18976@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well by default the custom message under the Advanced tab is supposed to override ANY and ALL default validation messages.  That includes the required field validation message and the no duplicates message.  It should override both.&#60;/p&#62;
&#60;p&#62;That is how the functionality is supposed to work but I will have to look into why the custom validation message feature isn't overriding the no duplicates default message.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stephan.wehmeier on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-18975</link>
			<pubDate>Fri, 18 Feb 2011 22:14:42 +0000</pubDate>
			<dc:creator>stephan.wehmeier</dc:creator>
			<guid isPermaLink="false">18975@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think that you need two different validation messages for a field if two rules (required, no duplicates) are applied to one form field.&#60;br /&#62;
The field editor override in the advanced tab seems to be applied to the required-rule, but not to the duplicate-rule - what makes sense: two rules, two messages.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "No Duplicates - custom validation message"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-duplicates-custom-validation-message#post-18974</link>
			<pubDate>Fri, 18 Feb 2011 22:02:53 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18974@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;By default the custom validation message that is entered under the Advanced tab of the field editor should override the default validation message. But in the case of the no duplicates option, it doesn't appear to be doing so.  I will look into why and get it changed so that the custom validation message does override the default in this situation.&#60;/p&#62;
&#60;p&#62;There is also a hook that can be used to implement custom validation.  It is called the gform_validation hook.  &#60;/p&#62;
&#60;p&#62;Here is an example of it's use:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;#39;gform_validation&#38;#39;, &#38;#39;custom_validation&#38;#39;);
function custom_validation($validation_result){

    // set the form validation to false
    $validation_result[&#38;quot;is_valid&#38;quot;] = false;
    $form = $validation_result[&#38;quot;form&#38;quot;];

    // specify the first field to be invalid and provide custom validation message
    $form[&#38;quot;fields&#38;quot;][0][&#38;quot;failed_validation&#38;quot;] = true;
    $form[&#38;quot;fields&#38;quot;][0][&#38;quot;validation_message&#38;quot;] = &#38;quot;This field is invalid!&#38;quot;;

    // update the form in the validation result with the form object you modified
    $validation_result[&#38;quot;form&#38;quot;] = $form;

    return $validation_result;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
