<?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: Question on Postcode / Zipcode Filter in multi-page form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form</link>
		<description>Gravity Support Forums Topic: Question on Postcode / Zipcode Filter in multi-page form</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 01:50: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/question-on-postcode-zipcode-filter-in-multi-page-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Tom Bevington on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-24979</link>
			<pubDate>Fri, 06 May 2011 21:32:16 +0000</pubDate>
			<dc:creator>Tom Bevington</dc:creator>
			<guid isPermaLink="false">24979@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Assuming GF fields have (or can be assigned) an ID, shouldn't Client-side javascript be to access those fields via the document.getElementById() function?&#60;/p&#62;
&#60;p&#62;As it appears I've hit the wall with client-side GF customization, do you have any suggestions or examples you could point me to on how to capture the zipcode on the client form and do the validation and conditional activities on the server?  Perhaps with the gform_validation hook you mentioned earlier.   I need to test the zipcode captured in GF against the zipcode field of approximately 1200 records that will have to be loaded into MySQL manually or via some plugin.&#60;br /&#62;
If there's a match on a record, I'll need to extract the record's other fields, send them back down to the client to be prepopulate and display other GF fields on the client.&#60;/p&#62;
&#60;p&#62;Am running out of options and hope you can point me to a viable plan-B or plon-C since my ciient-side Plan-A has pushed the envelope of GF.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-24636</link>
			<pubDate>Mon, 02 May 2011 12:16:36 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">24636@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What you want to do is very unique which is why no examples exist, it hasn't been done before to my knowledge.  &#60;/p&#62;
&#60;p&#62;Conditional logic works being triggered by selection fields (drop down, radio button and checkboxes) and can't be triggered by a standard input field.  I'm not aware of any examples of people implementing this type of conditional with Gravity Forms so I don't really have any code snippets or examples to be able to point you to to assist.  &#60;/p&#62;
&#60;p&#62;What you want to do is complex, you may want to consider hiring a WordPress developer with Gravity Forms customization experience to handle this for you, otherwise you are going to have a difficult time implementing something like this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom Bevington on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-24616</link>
			<pubDate>Mon, 02 May 2011 02:29:45 +0000</pubDate>
			<dc:creator>Tom Bevington</dc:creator>
			<guid isPermaLink="false">24616@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, &#60;/p&#62;
&#60;p&#62;I'm back and thought I'd clarify something, when collecting data I realize I don't need to use multiple WP pages, but merely conditionally display the appropriate sections of a single form, i.e. &#60;/p&#62;
&#60;p&#62;var zip5 = event.value.toString();&#60;/p&#62;
&#60;p&#62;var myRegExp = /^92(2&#124;3&#124;5)/;&#60;/p&#62;
&#60;p&#62;if ( zip5.length === 5 &#38;amp;&#38;amp; myRegExp.test(zip5))&#60;br /&#62;
{&#60;br /&#62;
DISPLAY FORM SECTION A WITH PRICE LIST A&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
DISPLAY FORM SECTION B WITH PRICE LIST B&#60;/p&#62;
&#60;p&#62;} &#60;/p&#62;
&#60;p&#62;I'd still like to do the conditional testing of the zipcode against a list of several hundred 5-digit US zipcodes on the client, but have little experience working with JQuery and have seen no examples in this forum of how to use JQuery on the client-side to check GF fields or act upon them.  If you have any such examples or could direct me to some, they would be a great help.&#60;/p&#62;
&#60;p&#62;Lastly, if I can't do client-side field checking and conditional branching, I guess I'll have to do it server side.   This will obviously be slower, but maybe more straightforward - even for a PHP novice.   Do you have examples of how I'd check a zipcode captured in, say, section 1 of a gravity form - and then based upon that zipcode being in found in one of three lists, conditionally display the next section of the gravity form with the associated fields/prices/etc.?&#60;/p&#62;
&#60;p&#62;Any help would be most welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-21503</link>
			<pubDate>Fri, 25 Mar 2011 12:19:26 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21503@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;1) No, a form is embedded on a single Page or Post.  It doesn't span multiple Pages or Posts.  If you wanted to do that you'd have to create multiple forms and embed them on each Page and then redirect to the next form as part of the confirmation process that happens when a form is submitted.  But then the data would also span multiple forms and have to be accessed individually, it wouldn't be grouped.&#60;/p&#62;
&#60;p&#62;2) I'm not aware of any current examples on doing field validation with Javascript.  If you use jQuery it should be possible.  We do validation on the server side and most users use the gform_validation hook to do custom validation that way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom Bevington on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-21502</link>
			<pubDate>Fri, 25 Mar 2011 12:15:29 +0000</pubDate>
			<dc:creator>Tom Bevington</dc:creator>
			<guid isPermaLink="false">21502@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, thanks for the reply, but need as a GF Newbie seek some clarification....&#60;/p&#62;
&#60;p&#62;RE: 1) Does GF 1.5's multi-page support via the Page Break Field allow me to have a single GF Form that spans multiple WORDPRESS PAGES?  That is, if I have a GF Form with 15 fields, can I reveal and populate fields 1-5 with WORDPRESS PAGE A, fields 6-10 with WORDPRESS PAGE B, and fields 11-15 with WORDPRESS PAGE C?   In essence, this means WORDPRESS PAGES would provide &#34;Views&#34; into selected portions of a GF form.&#60;/p&#62;
&#60;p&#62;RE: 2) My JavaScript Code to test the Zipcode is pretty simple, but I'm not sure how I'd leverage the jquery library that CF is already using to do the regex stuff.  Can you point me to any examples or code showing how to use JS to test the value of a GF field, then based upon results of that calculation, setting a variable or making a calculation that can be used or accessed from an entirely different pages or forms?  Here's the JS pcode for what I'm thinking:&#60;/p&#62;
&#60;p&#62;var  zip5 = event.value.toString();&#60;/p&#62;
&#60;p&#62;var myRegExp = /^92(2&#124;3&#124;5)/;&#60;/p&#62;
&#60;p&#62;if ( zip5.length === 5 &#38;amp;&#38;amp; myRegExp.test(zip5))&#60;br /&#62;
    {&#60;br /&#62;
        GOTO PAGE A WITH PRICE LIST A&#60;br /&#62;
	or.. GOTO PAGE C AND CALCULATE/DISPLAY PRICE LIST A&#60;br /&#62;
    }&#60;br /&#62;
else&#60;br /&#62;
    {&#60;br /&#62;
        GOTO PAGE B WITH PRICE LIST B&#60;br /&#62;
        or.. GOTO PAGE C AND CALCULATE/DISPLACY PRICE LIST B&#60;br /&#62;
     }
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-21479</link>
			<pubDate>Fri, 25 Mar 2011 11:40:30 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21479@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;1) Gravity Forms 1.5 supports multi-page forms using the Page Break field.&#60;/p&#62;
&#60;p&#62;2) You would have to place any custom jQuery on the page containing the form.&#60;/p&#62;
&#60;p&#62;3) I'm not 100% sure, I would use jQuery and target the zipcode field and apply custom jQuery to manipulate the input however you want.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom Bevington on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-21441</link>
			<pubDate>Thu, 24 Mar 2011 23:59:04 +0000</pubDate>
			<dc:creator>Tom Bevington</dc:creator>
			<guid isPermaLink="false">21441@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just purchased a developers license of GF, and have a similar need to Mr. Honeyfoot.&#60;/p&#62;
&#60;p&#62;Namely I have a simple, five-field form, the last field being a zipcode that will be used to drive the user to either a) one of two different price-list pages.... or b) to a single page that  conditionally displays one of the two aforementioned price-lists.&#60;/p&#62;
&#60;p&#62;Have the following questions:&#60;/p&#62;
&#60;p&#62;1) Can a single GF form with both visible and invisible fields span MORE THAN ONE WordPress Page?&#60;/p&#62;
&#60;p&#62;2) I have the JavaScript and Regular Expression code to do the Zipcode Test and don't want to use PHP, so how/where do I use my  JS/RegEx code for the zipcode test in Gravity Forms?&#60;/p&#62;
&#60;p&#62;3) Any General ideas on how to best accomplish this in Gravity Forms given 1 and 2 above?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-17112</link>
			<pubDate>Thu, 27 Jan 2011 15:07:01 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17112@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Now that you're getting into more advanced territory there are two things you'll want to familiarize yourself with.&#60;/p&#62;
&#60;p&#62;1) The WordPress database object: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wpdb_Class&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wpdb_Class&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;2) PHP &#60;strong&#62;print_r()&#60;/strong&#62; function: &#60;a href=&#34;http://php.net/manual/en/function.print-r.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.print-r.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;After querying the database using the $wpdb class, you can use print_r() to output the returned results to the screen so you can see specifically what you are working with. In this case, you need to print_r the $valcodes array to verify that it is indeed a list of the post codes you want.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mrhoneyfoot on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-17103</link>
			<pubDate>Thu, 27 Jan 2011 14:00:05 +0000</pubDate>
			<dc:creator>mrhoneyfoot</dc:creator>
			<guid isPermaLink="false">17103@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Fine on the first count. Not 100% sure the second array is being correctly populated. I have it like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pastie.org/1503163&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1503163&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Am I doing it wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Question on Postcode / Zipcode Filter in multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/question-on-postcode-zipcode-filter-in-multi-page-form#post-17051</link>
			<pubDate>Wed, 26 Jan 2011 18:17:14 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17051@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you are only getting the last error message (&#34;Your postcode is not recognised, please check and try again.&#34;) this is indicative that your if condition is not being met. Can you verify if $postcode evaluates to true AND that $valcode is actually in the $valcodes?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
