<?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: Custom validation script - Error on multi-page form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-script-error-on-multi-page-form</link>
		<description>Gravity Support Forums Topic: Custom validation script - Error on multi-page form</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 00:42:20 +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/custom-validation-script-error-on-multi-page-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Custom validation script - Error on multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-script-error-on-multi-page-form#post-174423</link>
			<pubDate>Sun, 17 Mar 2013 16:14:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">174423@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you mean you're using this code specifically?&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/check-date-greater-than-18-yrs#post-123741&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/check-date-greater-than-18-yrs#post-123741&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please see this documentation for using gform_validation on multi-page forms:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The form we we re working with previously was a single page form.&#60;/p&#62;
&#60;p&#62;Line 19 is where you would modify the date format in this code:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/Rz9hurZt&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/Rz9hurZt&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The date format you use in the script should match the date format used in the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aguaweb on "Custom validation script - Error on multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-script-error-on-multi-page-form#post-171369</link>
			<pubDate>Thu, 14 Mar 2013 14:47:30 +0000</pubDate>
			<dc:creator>aguaweb</dc:creator>
			<guid isPermaLink="false">171369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also the date field is returning the date in mm/dd/YYYY format, instead of YYYY-mm-dd:&#60;br /&#62;
$field_id = 7;&#60;br /&#62;
$dob = rgpost('input_'.$field_id);&#60;/p&#62;
&#60;p&#62;Is there a way to get the date in the YYYY-mm-dd format or do I need to modify the script to read the mm/dd/YYYY format?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aguaweb on "Custom validation script - Error on multi-page form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-script-error-on-multi-page-form#post-171356</link>
			<pubDate>Thu, 14 Mar 2013 14:11:47 +0000</pubDate>
			<dc:creator>aguaweb</dc:creator>
			<guid isPermaLink="false">171356@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I followed this tutorial to calculate and validate against a person's age using a date picker field: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/check-date-greater-than-18-yrs&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/check-date-greater-than-18-yrs&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The problem is I am using a multi-page form and the date of birth field I am using is on the second page.  When the script executes I am getting a validation error message at the top of the first page, but no field is highlighted below as containing an error.&#60;/p&#62;
&#60;p&#62;When I remove the age validation script, I can proceed past page one just fine.&#60;/p&#62;
&#60;p&#62;The script otherwise runs successfully.  How can I modify the script to only execute on the page that contains the DOB field?&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
