<?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: Multiple Number Ranges</title>
		<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges</link>
		<description>Gravity Support Forums Topic: Multiple Number Ranges</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 11:04:07 +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/multiple-number-ranges" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-193157</link>
			<pubDate>Mon, 01 Apr 2013 14:38:19 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">193157@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlbadvertising on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-193119</link>
			<pubDate>Mon, 01 Apr 2013 14:09:38 +0000</pubDate>
			<dc:creator>mlbadvertising</dc:creator>
			<guid isPermaLink="false">193119@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you. This solved my problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-193037</link>
			<pubDate>Mon, 01 Apr 2013 12:17:38 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">193037@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is a test for sending an error back. So what you would do is if field value is not between this range, or between this range or between this range or between this range, then return error.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlbadvertising on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-193019</link>
			<pubDate>Mon, 01 Apr 2013 12:11:29 +0000</pubDate>
			<dc:creator>mlbadvertising</dc:creator>
			<guid isPermaLink="false">193019@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great. Can I use this hook to return a true value for &#34;is_valid&#34; as opposed to a false one (In other words, write the hook based on what makes the validation &#34;True&#34;, rather than what makes it false)?&#60;/p&#62;
&#60;p&#62;If that were the case, I can add an &#34;else&#34; that states if the conditions are not met, it is false, regardless.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-192923</link>
			<pubDate>Mon, 01 Apr 2013 11:27:20 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">192923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would put it in your theme's functions.php file. &#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>mlbadvertising on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-192919</link>
			<pubDate>Mon, 01 Apr 2013 11:24:20 +0000</pubDate>
			<dc:creator>mlbadvertising</dc:creator>
			<guid isPermaLink="false">192919@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Taking a look over, that seems to be what I'm looking for. I understand the logic, but I've never used a hook before; where would I input my custom validation hook? Wordpress's page.php, after identifying the page that houses the form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-192902</link>
			<pubDate>Mon, 01 Apr 2013 11:14:24 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">192902@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could create your own custom validation for a field and return an error if they are wrong, and let them submit fine if they are correct. You would use the hook gform_field_validation&#60;/p&#62;
&#60;p&#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;Then you could test if the submitted number is in your ranges.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlbadvertising on "Multiple Number Ranges"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-number-ranges#post-192885</link>
			<pubDate>Mon, 01 Apr 2013 10:49:00 +0000</pubDate>
			<dc:creator>mlbadvertising</dc:creator>
			<guid isPermaLink="false">192885@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Is there a way on a number field to apply multiple ranges?&#60;/p&#62;
&#60;p&#62;I'm attempting to set up a form which is nothing more than a simple &#34;Validation&#34; before you can proceed to the registration page. It ensures a member has a valid &#34;Member number&#34; before they can proceed to registration. Member numbers are 5 digits, but herein lies the rub; there are multiple ranges of member numbers. For example, the valid ranges are 10001 to 12000, then 20100 to 20200, 30000 to 30200, and finally 70000 through 70300.&#60;/p&#62;
&#60;p&#62;I attempted to get around this by adding four separate HTML blocks that show text saying, &#34;The number is valid.&#34; depending on the value entered in the field (This wouldn't be a problem as it is impossible for all four number ranges to be satisfied at once; it would simply be one or the other.) If any single one of these messages were displayed, I wanted the submit button to show; however, apparently you can't use conditional logic based on HTML blocks.&#60;/p&#62;
&#60;p&#62;I also thought that perhaps I can have four submit buttons (All identical, one displays when one of the ranges is satisfied) however, you can't add more than one submit button to a form.&#60;/p&#62;
&#60;p&#62;The only feasible solution I thought of (And certainly not optimal, I will explain), is to have four number boxes and a label above each that describes &#34;If your number is between 10001 and 12000, enter here.&#34; This essentially defeats the purpose. &#60;/p&#62;
&#60;p&#62;So I'm back to square one. I looked for add-ons that would feature advanced conditional logic, but no luck. To restate, I need a way for a user to enter a member number (Without being given instructions on what the acceptable range is) between multiple ranges, hit submit, and redirect to the registration page. Any help is appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
