The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Capture personal data after submit
I have a link to a form (The Survey) on my website (www.lypper.com) intended to capture general preferences from consumers. The Survey itself does not ask for name, e-mail or any personally identifiable information because that is captured during the Registration process.
The Survey is available whether you are logged out/not registered or logged in. If the user is logged in, it records the survey responses and user's e-mail address upon "Submit", so this is perfect.
The issue is when the user is not registered/logged out. Two things happen when the user hits "Submit" The Survey: 1) it records the answers but I don't know who the user is and, 2) it redirects the user to a page with two forms side by side: "New User Registration" and "Login". I want the survey responses to be tied to the user after they've registered or logged in. Asking users to register or login as a requirement prior to beginning the survey is not an option I will entertain.
The end goal with users who are not registered/logged out is that once they complete The Survey and hit "Submit", they are asked to either register or login AND once they do that, The Survey will tie that user's e-mail address to the survey responses so I know who it is.
Hopefully, I've explained it clear enough and your guidance is very appreciated. Thanks!
July 4, 2017 at 10:10 pm
Let me make sure I understand, you want to allow users to create a form entry and after it's saved, you will route them to a login page where they will hopefully register. If they do register, you want to tie the user id to the previously saved form.
Why wouldn't you use the Formidable registration add-on? It will automatically register a user when they create the entry. There would be no rerouting necessary and you can save a lot of time for the end user.
If you want to continue down the road that you are planning, it would take a lot of custom programming. Once the form is saved, there's no way to link the form entry to a user registration without a lot of additional work. You would need to save the form entry's key to local browser storage or a cookie, then if the user decides to register, you would have to hook into the WordPress registration function, recover the entry key, and tie the two bits of data together by programmatically adding the user registration details to the form. Using the registration add-on would be so much easier.
If the user is registered, but logged out when they create the entry, you'll never be able to tie the details together at all.
July 5, 2017 at 2:37 pm
Thanks for your response, Victor! I'm very novice and trying to figure this out as I build my website. Where can I learn more about the registration add-on to see if it meets my needs?
To provide additional background, most of the content is open to everyone. My assumption is that, once I begin efforts to drive traffic to it, users will find the content interesting and click through. I tend to think that most users are like me in that I will not register willingly on a site unless I'm going to get some / a lot of value out of it. Many blogs out there will ask for your e-mail and that's it. I want to know a little bit more information about users and it's ok if I lose some people along the way.
Today, the blog requires name and e-mail to leave comments. The other key area for me is the survey which should have two paths, depending on the answers to one specific question. If the answer to the question is yes, then I will require name, address, mobile and e-mail. If the answer is no, I will only require name and e-mail. The assumption is that most users who click to take the survey will click on it prior to registering or logging in.
I noticed yesterday when I downloaded the survey entries file that, while all responses are captured, only the ones where the user is already logged in has the user name (which is their email address) field populated.
Thanks again.
July 5, 2017 at 3:58 pm
You can learn more about the Registration add-on from the add-on page: https://formidableforms.com/add-ons/
Discussion closed.