<?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: User registration problem</title>
		<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem</link>
		<description>Gravity Support Forums Topic: User registration problem</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 15:24:50 +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/user-registration-problem" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-72732</link>
			<pubDate>Mon, 27 Aug 2012 09:43:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72732@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting that comprehensive write up.  If you have a blog and would like to post it there, please feel free and we'll add the link here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeyrudi on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-72718</link>
			<pubDate>Mon, 27 Aug 2012 04:58:04 +0000</pubDate>
			<dc:creator>joeyrudi</dc:creator>
			<guid isPermaLink="false">72718@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK - after spending all day on this, I came up with a solution that works for my situation. I'll describe it here for others, but by no means do I expect this will work in all scenarios. However, if you do find this useful *and* you find a way to improve upon it, please share.&#60;/p&#62;
&#60;p&#62;Basically, I found that I had to setup two different email fields (one hidden) on two different form pages. Then I had to use hidden radio buttons to say whether we're dealing with a new user or existing user. Then I had to modify my Registration Add-On settings. Finally, add some hooks and javascript to tie it all together.&#60;/p&#62;
&#60;p&#62;1. On a multiple page form, prior to including any other Email field, include a single line text field. Let's say page #2, and call the field &#34;Enter Email&#34; and make it required. Let's assume that field ends up with a form input name of &#34;input_10&#34;. This is where the user will enter their email address. I'm pretty sure you can put some formatting validation on that field through GV, but I haven't done it yet. If not, there's always some javascript you could use.&#60;/p&#62;
&#60;p&#62;2. Save your form.&#60;/p&#62;
&#60;p&#62;3. Just below &#34;Enter Email&#34;, make a radio button field. Let's assume that field ends up with a form input name of &#34;input_11&#34;. Let's give that field a label of &#34;is_registered&#34;. For the radio buttons, give one a value of &#34;Yes&#34; and one a value of &#34;No&#34;. Make the &#34;Yes&#34; the default. Make the button required. On the Advanced tab, change Visibility to Admin Only and check Allow field to be populated dynamically (not really sure if that's necessary or not). Leave the parameter blank.&#60;/p&#62;
&#60;p&#62;4. Save your form.&#60;/p&#62;
&#60;p&#62;5. At this point, you should *not* have included the standard Email form field anywhere before step #1. But now it's time to add it. However, you need to add it on the next form page. So go ahead and add a page break, if you don't already have one.&#60;/p&#62;
&#60;p&#62;6. Save your form&#60;/p&#62;
&#60;p&#62;7. On the new page, add the standard Email field and label it &#34;Your Email&#34;. Let's assume that this field has a form input name of &#34;input_15&#34;. Make it required. On the Advanced tab, you have to leave this field visible to everyone, cuz this process doesn't work with it hidden. However, we don't want people to see this field because they already entered their email address in the step #1 field. So we have to throw some CSS on it to hide it. In the CSS Class Name field, enter &#34;iamhidden&#34;. We'll create the CSS in a bit.&#60;/p&#62;
&#60;p&#62;8. I left the &#34;Allow field to be populated dynamically&#34; field unchecked because I couldn't figure out a good way to use it, but I tried. This is an area that someone might really be able to improve upon. Because instead, we have to use some javascript to populate this &#34;Your Email&#34; field - we'll to that in a bit.&#60;/p&#62;
&#60;p&#62;9. I was finding that I needed another form field on this page. That may or may not be true. Either way, you don't want users looking at a blank form, so you'll have to add something. Your form scenario probably lends itself to that anyway.&#60;/p&#62;
&#60;p&#62;10. Save your form&#60;/p&#62;
&#60;p&#62;11. Jump over into your User Registration Settings/Feed (I'm assuming you already have this setup to some degree). Set the username field to the &#34;Your Email&#34; that you created; set the Email Address field to the &#34;Your Email&#34; that you created; set password to &#34;Auto Generate Password&#34;; set all other fields as appropriate.&#60;/p&#62;
&#60;p&#62;12. Check the box for the Registration Condition. Set the drop-downs to &#34;is_registered&#34; &#34;is&#34; &#34;No&#34;.&#60;/p&#62;
&#60;p&#62;13. If you're automatically creating posts, you'll probably want to enable &#34;Set As Post Author&#34;.  But keep in mind that the post author will only be set to the user when it's a newly registered user (due to the fact that we just placed the conditional in step #12). So if you check the box, you'll need to add another hook later on to set existing users as post authors. The drawback to that is you'll be setting post author without necessarily authenticating the user, which could have some negative consequences. I'll show you the code to set the author, but it's kinda a separate topic.&#60;/p&#62;
&#60;p&#62;14. Save the settings&#60;/p&#62;
&#60;p&#62;15. Open your functions.php file and add the following code. This code will get executed when the user navigates from form-page-to-form-page. This code will get the email address from the field we created in step #1 (Enter Email) and look at Wordpress to see if there is an existing user with that email address. If the user doesn't exist, the radio buttons (from step #3) are set to No. This in turn tells the Registration Add-On to create a new user. If the user does exist, the radio button are set to Yes and the registration process won't get in the way of adding a new entry because of the conditional we set in step #12:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4596054&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4596054&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;16. As described in step #13, you may or may not want to add the following code to your functions.php file. This is the code that will update a post's author when your user isn't logged in. Again, there are some real security downsides to this (like other people possibly being able to see someone else's post). So if you're gonna do this, you really should know what you're doing. Otherwise, don't.&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4596080&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4596080&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;17. Save functions.php&#60;/p&#62;
&#60;p&#62;18. Open the file you're using to style your forms. As mentioned in step #7, we need to hide the &#34;Your Email&#34; field. Add the following to you stylesheet:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4596116&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4596116&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;19. Finally, we have to add the code that will copy the email address from &#34;Enter Email&#34; to &#34;Your Email&#34;. We do this via javascript. So open main.js or whatever file you're keeping your scripts and add the following. Be sure to replace the numbers with the appropriate numbers of your actual form and fields:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4596135&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4596135&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;20. Make sure everything is saved and then test.&#60;/p&#62;
&#60;p&#62;Hopefully I haven't forgotten anything. I really don't have time to support issues on all of this, so it's best to understand what you're doing here.&#60;/p&#62;
&#60;p&#62;And maybe soon, the fine people at rocketgenius will just implement the (Register if &#38;lt;email_field&#38;gt; is &#34;unknown in DB&#34;) condition in the Add-on.&#60;/p&#62;
&#60;p&#62;:)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeyrudi on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-72709</link>
			<pubDate>Mon, 27 Aug 2012 01:47:20 +0000</pubDate>
			<dc:creator>joeyrudi</dc:creator>
			<guid isPermaLink="false">72709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Chris, the best scenario for me would that the Registration Add-On allowed for a condition that said &#34;Register the user if  &#38;lt;the_form_email_field&#38;gt; is not owned by an existing user&#34;.  I'm looking for the exact same solution as @rubencio, @mediana, @Bjarne, and @Nathan.&#60;/p&#62;
&#60;p&#62;I'm actually 98% finished with an ugly, albeit functional, albeit ugly (did I say ugly?), workaround that solves my problem and doesn't require a user to login or use two forms like described by @Carl. But I was hoping someone had a better solution.&#60;/p&#62;
&#60;p&#62;Regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-72701</link>
			<pubDate>Sun, 26 Aug 2012 23:31:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72701@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@joeurudi, can you please post the flow on your site and how you want the registration process to work? Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeyrudi on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-72655</link>
			<pubDate>Sun, 26 Aug 2012 15:20:41 +0000</pubDate>
			<dc:creator>joeyrudi</dc:creator>
			<guid isPermaLink="false">72655@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking for a solution to the scenario discussed in this thread (Register if &#38;lt;email_field&#38;gt; is &#34;unknown in DB&#34;). Anyone willing to share what they eventually implemented?&#60;/p&#62;
&#60;p&#62;Best.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nathan on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-59507</link>
			<pubDate>Sat, 19 May 2012 10:06:31 +0000</pubDate>
			<dc:creator>Nathan</dc:creator>
			<guid isPermaLink="false">59507@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to do this with hooks?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nathan on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-59506</link>
			<pubDate>Sat, 19 May 2012 10:05:07 +0000</pubDate>
			<dc:creator>Nathan</dc:creator>
			<guid isPermaLink="false">59506@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;I see your point of using the user registration functionality for user registrations, but it seems that the additional functionality is required by more than 1 person, including me. I would love to see the functionality to only register if the user if they don't exist and to simply ignore the registration process if the user exists. I feel like it should be an option.&#60;/p&#62;
&#60;p&#62;My requirements is purely a back end thing. The user never logs into the site so I want the registration to be transparent to the user. (At a later stag I will be integrating user logins to the site, but not yet)&#60;/p&#62;
&#60;p&#62;Nathan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-41235</link>
			<pubDate>Tue, 15 Nov 2011 23:15:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">41235@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@suiwrl One solution would be to add a field to your form that asks the user is he is an existing user or not.  If they are not an existing user, then show the registration related fields using conditional logic.  If they are an existing user then you can use conditional logic to hide the registration related fields.&#60;/p&#62;
&#60;p&#62;Then in the User Registration Add-On feed for that form you can configure the Registration Condition.  The Registration Condition lets you configure the form so that the registration process only happens if the user makes a certain selection on the form.  Ex. they select they are a new user from the field that asks if they are a new or existing user.&#60;/p&#62;
&#60;p&#62;If they are an existing user and they choose new user... they will see right away that their email is already in use so they must be an existing user.  So they can simply change the form field that asks if they are new or existing to existing.&#60;/p&#62;
&#60;p&#62;That is the simplest way to handle what you have described.&#60;/p&#62;
&#60;p&#62;The other solution is to create 2 different forms.  One for new users that also registers them and a second for existing users that does not have registration functionality.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>squiwrl on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-41232</link>
			<pubDate>Tue, 15 Nov 2011 23:01:54 +0000</pubDate>
			<dc:creator>squiwrl</dc:creator>
			<guid isPermaLink="false">41232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I'm just wanting to clarify; will the solution above work for the following.&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;&#60;u&#62;Scenario 1&#60;/u&#62; User fills out a form which they can purchase something through. This form registers the user.&#60;/li&#62;
&#60;li&#62;&#60;u&#62;Scenario 2&#60;/u&#62;  The user doesn't log in but wants to purchase another item. Their email address already exists as a registered user.&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;How do i get this to work? Any ideas? If this should have been in another thread please let me know and I'll make a new one.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediana on "User registration problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-registration-problem#post-40646</link>
			<pubDate>Wed, 09 Nov 2011 17:44:59 +0000</pubDate>
			<dc:creator>mediana</dc:creator>
			<guid isPermaLink="false">40646@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just like Rubencio, I try to do a 'quote form'. I have the same requirements, as clients won't be necessarly connected to make a new quote. This improves a lot the conversion rate. Mixing the user registration into the quote form is a very good approach to me. I also thought Gravity User Reg Add-on could help me save coding time by handling the User Reg process easily. Registration conditions shows the add-on has some flexibility. It would be great if this could be improved the way rubencio &#38;amp; I describe it. Duplicating forms is not a solution for me, because I have a dozen of different forms to create. This would be unadministrable ! I hope this make sense !
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
