PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User Registration/Submission Form Not Allowing Existing Users To Complete Form

  1. Here's what I have.

    - I have a "User Topic" form on a page.
    - The form has the user registration add-on enabled, so that I can (a)communicate with the submitter, should the submission need some changes (b) so the submitter can be notified of comments, etc.

    My issue is that if a user is already registered, they cannot fill out the form. However, I cannot have non-registered users filling out the form. I don't want to have two forms on two seperate pages, as that will complicate things, and be a little redudant (in my opinion, at least).

    How would I include some php code to notify that form to bypass the user-registration portion of that particular form, should the current user already be logged in?

    Is there a "login/registration" option to place within the form? This way if it's an existing user, he/she will login and bypass the registration process of the form?

    Posted 13 years ago on Wednesday March 16, 2011 | Permalink
  2. The User Registration configuration has a Conditional option when setting up the User Registration integration for that form. You would have to ask the user if they are a New User or Existing User using something like a Drop Down or Radio Button and then show/hide the User Registration related fields based on that and configure the User Registration settings so it is only triggered if they select New User.

    The User Registration Add-On is a v1 Beta product so it doesn't currently handle every situation. Automatic handling of users that are already logged in when filling out the form is something we do plan on implementing in a future release.

    Posted 13 years ago on Wednesday March 16, 2011 | Permalink
  3. hmmmm......Maybe have a conditional form on a page that says...

    "Registered User: Click here" <---THis would redirect them to a password protected form that has everything my current form has - Minus the registration questions.

    and below the "registered user: click here:" would be the normal form with the registration conditions?

    Do you think this is the best way to accomplish this? Let me know. thanks.

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  4. Yes, currently that would be the best way to handle it. We do plan on tackling this in a future release.

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  5. Works perfectly, however, you need to give registered users the ability to view "private" pages. Fortunately, I don't currently use "private" pages/posts for anything so this option works for me. However, as soon as you create the ability for a "registration add-on" form to detect and input a logged in user, please email us all with a notification, I'm sure this is a feature that everyone is anticipating. But for those waiting for that feature, I will detail the process that I used below.

    1.) Create your base form before adding the registration commands.
    2.) Use the "Duplicate" option below the form name on your forms list to duplicate your new form.
    3.) Take your newly duplicated form and edit it to add the necessary fields to implement an "auto-registration" process when filling out your form.
    4.) Save that form with a different name - such as "Submission/Registration" versus your "submission" form.
    5.) Create a new page in WP for your submission/registration form.
    6.) Create a sub-page in WP for your non-registration submission form (for logged in users). MAKE THIS PAGE PRIVATE!!!!!!
    7.) Go back to the submission/registration form page and insert the shortcode for your submission/registration form for non-logged in users. **I used a block quote command to notify users that if they are an existing user to login and come back to the page to click on the "EXISTING USERS CLICK HERE" button. (as well my blockquote notifies new users that they will automatically be creating username and password while filling out this submission form for future use.)
    8.) I placed a button titled "EXISTING USERS CLICK HERE", and placed the button directly below the block quote and above the actual form shortcode.
    9.) The link within the button I made goes to that "private" subpage that is identical to the registration/submission page, except the private page has the submission page without a registration requirement for users that are logged in.
    10.) Using Justin Tadlock's MEMBERS plugin for WP, I gave contributors the role to "read_private_pages". You must also go to your WP Admin settings and give newly registered users "CONTRIBUTOR" role status for this to work.

    ***THERE MAY ALREADY BE A BETTER WAY, HOWEVER, THIS IS THE BEST WAY THAT I COULD FIGURE UNTIL GRAVITY FORMS HAS THE TIME TO CODE THE REGISTRATION ADD-ON (which is still in development, so don't get your panties in a bind...lol) TO DETECT A LOGGED IN USER AND BYPASS THE REGISTRATION PORTION OF YOUR FORMS.*****

    Hope this helps someone.

    Posted 13 years ago on Wednesday March 23, 2011 | Permalink