<?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: Registering users with a Gravity Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form</link>
		<description>Gravity Support Forums Topic: Registering users with a Gravity Form</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 02:30:39 +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/registering-users-with-a-gravity-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Registering users with a Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form#post-1386</link>
			<pubDate>Sun, 08 Nov 2009 23:20:55 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1386@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Aaron,&#60;br /&#62;
I have added the gform_is_duplicate filter to RGFormsModel::is_duplicate(), so you should be good to go when upgrading to 1.3.&#60;/p&#62;
&#60;p&#62;Let me know if you would like to give it a run and I will send it to you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aaron Campbell on "Registering users with a Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form#post-1289</link>
			<pubDate>Mon, 02 Nov 2009 10:06:16 +0000</pubDate>
			<dc:creator>Aaron Campbell</dc:creator>
			<guid isPermaLink="false">1289@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Alex.  I actually modified my version and used that exact code that I pasted in the first post on line 962 in RGFormsModel::is_duplicate() - that line number is based on  version 1.2.1.  It worked perfectly, allowing me to hook in and check users just like this:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function noDuplicateEMails($count, $form_id, $field, $value) {&#60;br /&#62;
	if ( $form_id == 2 &#38;amp;&#38;amp; $field['type'] == 'email' &#38;amp;&#38;amp; get_user_by('email', $email) ) {&#60;br /&#62;
		$count = 1;&#60;br /&#62;
	}&#60;br /&#62;
	return $count;&#60;br /&#62;
}&#60;br /&#62;
add_action('gform_is_duplicate', 'noDuplicateEMails', null, 4);&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It works perfectly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Registering users with a Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form#post-1286</link>
			<pubDate>Mon, 02 Nov 2009 00:44:36 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1286@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Aaron,&#60;br /&#62;
We are wrapping up development on 1.3 and I might be able to add a hook/filter so that you can fail the validation with your message (it currently can't be done). As far as the &#34;not unique&#34; error, it makes sense, but I am not sure it will be a popular enough feature to make it to the UI. I will make sure you can change it via a filter/hook though. I will keep you posted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aaron Campbell on "Registering users with a Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form#post-1279</link>
			<pubDate>Sun, 01 Nov 2009 02:28:02 +0000</pubDate>
			<dc:creator>Aaron Campbell</dc:creator>
			<guid isPermaLink="false">1279@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There's another thing.  It seems that you can't set the &#34;not unique&#34; error message.  I'd like to be able to set it as well as be able to add a %s where I want the E-Mail address to show.  Something like:&#60;br /&#62;
There is already and account for %s.  Please &#60;a&#62;log in&#60;/a&#62; or &#60;a&#62;recover your password&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aaron Campbell on "Registering users with a Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/registering-users-with-a-gravity-form#post-1278</link>
			<pubDate>Sun, 01 Nov 2009 02:09:13 +0000</pubDate>
			<dc:creator>Aaron Campbell</dc:creator>
			<guid isPermaLink="false">1278@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking to create a form that I'll use to do two things.  First I'll set the user up with a WordPress account, and I'll also use an API call to subscribe them to an E-Mail list.  This is something that's pretty common on sites that I develop (where they offer a free E-Book or something for signing up for their mailing list).  I can do it without Gravity Forms, but I'd like to be able to set it up where they could modify the form.&#60;/p&#62;
&#60;p&#62;Here's the way I usually do it:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;I have a form that's used in a few places (sidebar, inserted into certain posts, etc).&#60;/li&#62;
&#60;li&#62;The form submits to something like example.com/signup&#60;/li&#62;
&#60;li&#62;A script then processes that form, uses an API call to sign them up for the mailing list (which sends them their password for the site as part of the double opt-in E-Mail)&#60;/li&#62;
&#60;li&#62;Then the user gets a message either saying that it succeeded and they need to check their E-Mail, or an error about what went wrong and the form is displayed again&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;Most of this seems pretty easy, but I'm wondering if it's possible to do the following:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Can I filter the form in such a way as to make it fail (as though not validated) and display my error along with re-displaying the form?&#60;/li&#62;
&#60;li&#62;Could you add a filter to the is_duplicate that would let me check somewhere else for duplicates? I need to check that the E-Mail is unique among all users.  Maybe something like: &#60;code&#62;$count = apply_filters(&#38;#39;gform_is_duplicate&#38;#39;, $wpdb-&#38;gt;get_var($sql), $form_id, $field, $value);&#60;/code&#62;&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>

	</channel>
</rss>
