<?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 field validation and user registration</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-field-validation-and-user-registration</link>
		<description>Gravity Support Forums Topic: Custom field validation and user registration</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:13:37 +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-field-validation-and-user-registration" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Custom field validation and user registration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-field-validation-and-user-registration#post-39054</link>
			<pubDate>Wed, 26 Oct 2011 23:32:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">39054@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update jnj.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JnJ on "Custom field validation and user registration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-field-validation-and-user-registration#post-39041</link>
			<pubDate>Wed, 26 Oct 2011 21:35:58 +0000</pubDate>
			<dc:creator>JnJ</dc:creator>
			<guid isPermaLink="false">39041@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for educating me!&#60;/p&#62;
&#60;p&#62;That worked perfectly.  Thanks, you guys are great.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Custom field validation and user registration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-field-validation-and-user-registration#post-39018</link>
			<pubDate>Wed, 26 Oct 2011 17:03:40 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">39018@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi JnJ,&#60;/p&#62;
&#60;p&#62;The code that validates the custom registration code should not set the registration code to used. It should only validate whether or not it is used. You'd want to hook a separate function to the gform_post_submission function that would mark the registration code as used. This way the code is only marked as used upon a successfully submission.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JnJ on "Custom field validation and user registration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-field-validation-and-user-registration#post-38969</link>
			<pubDate>Wed, 26 Oct 2011 12:35:59 +0000</pubDate>
			<dc:creator>JnJ</dc:creator>
			<guid isPermaLink="false">38969@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have custom validation on a form that checks a &#34;registration code&#34; field against a database to see if that code has been used yet, and if not it will set that code to &#34;used&#34;. This form also registers users via the user registration add-on.&#60;/p&#62;
&#60;p&#62;I'm having a problem where if the user registration fails because the username has already been taken, the form does not submit but the registration code gets set to &#34;used&#34; in the database. My guess is that since the user registration is an add-on, all the normal validation checks get verified first and then the user stuff checks run separately. I could very well be wrong though  :)&#60;/p&#62;
&#60;p&#62;Do you know of a way I can make this right so that my gform_field_validation does not update my database values until after the form is fully validated?&#60;/p&#62;
&#60;p&#62;*edit*&#60;br /&#62;
I think it must be happening on more than just &#34;user name already registered&#34;. The site is live and people are trying to register and having problems, I can't imagine all of the problems were linked to duplicate user names.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
