<?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: limit entries per day and user</title>
		<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user</link>
		<description>Gravity Support Forums Topic: limit entries per day and user</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:53:50 +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/limit-entries-per-day-and-user" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-19742</link>
			<pubDate>Wed, 02 Mar 2011 13:11:47 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19742@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The hook you would use to do custom validation would be the gform_validation hook.  &#60;/p&#62;
&#60;p&#62;Here is an example of using the gform_validation hook:&#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;
&#60;p&#62;This example would apply this custom validation to ALL forms.  If you wanted to apply the custom validation to only a specific form you would change the following.&#60;/p&#62;
&#60;p&#62;Change:&#60;/p&#62;
&#60;p&#62;add_filter('gform_validation', 'custom_validation');&#60;/p&#62;
&#60;p&#62;To:&#60;/p&#62;
&#60;p&#62;add_filter('gform_validation_ID', 'custom_validation');&#60;/p&#62;
&#60;p&#62;You would place the form id you want to change where the _ID is in the example above.  So if you wanted to apply the custom validation to only form id 5 that line of code would look like:&#60;/p&#62;
&#60;p&#62;add_filter('gform_validation_5', 'custom_validation');
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mpvanwinkle on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-19737</link>
			<pubDate>Wed, 02 Mar 2011 12:41:59 +0000</pubDate>
			<dc:creator>mpvanwinkle</dc:creator>
			<guid isPermaLink="false">19737@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We really need this feature and have a fabulous developer.  Can we get the example code for the hook?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-18111</link>
			<pubDate>Wed, 09 Feb 2011 18:44:00 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18111@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It would be possible to use a validation hook that exists to write custom code to write custom validation yourself.  So if your developer is good at PHP and WordPress development, he could do this.  If you need details on which hook to use, let us know. It's the gform_validation hook.  We can provide example code for using this hook.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bloew11 on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-18110</link>
			<pubDate>Wed, 09 Feb 2011 18:28:31 +0000</pubDate>
			<dc:creator>bloew11</dc:creator>
			<guid isPermaLink="false">18110@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;thansk for your answet. okay so i have to think about another solution:) because i want 2 posts per day. but i will find a solution with my developer.&#60;/p&#62;
&#60;p&#62;thank you!&#60;/p&#62;
&#60;p&#62;beat
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-18104</link>
			<pubDate>Wed, 09 Feb 2011 17:42:31 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Currently it is not a built in feature to limit entries per day and user.&#60;/p&#62;
&#60;p&#62;If you want to limit entries per user you could do this by limiting it by email... add an email field to your form if you don't already have one and then edit that field and set the Rules so No Duplicates is checked.  &#60;/p&#62;
&#60;p&#62;What this will do is make it so that the email address can only be used once when submitting the form.  If they try using the same email address again it will be invalid.  It isn't full proof because they could use a different email, but for contest entries, etc. it should be fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bloew11 on "limit entries per day and user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-entries-per-day-and-user#post-18099</link>
			<pubDate>Wed, 09 Feb 2011 17:32:44 +0000</pubDate>
			<dc:creator>bloew11</dc:creator>
			<guid isPermaLink="false">18099@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hello,&#60;/p&#62;
&#60;p&#62;i know the possibility to limit entries. but is there also a possibility to limit per day and user?&#60;/p&#62;
&#60;p&#62;for example: user A can only create 2 entries per day&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Beat
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
