Membership Login Information Dilemma

Hey guy, I was able to add a member login just like in the example in the support page.

But only the user email would be sent to the datacollection that was setup, I was wondering if there’s a way to redirect a new member who just sign up and send them to the their profile page so they can fill out the information about their profile, only the first timers?

Is their a possible way? I would appreciate the help.

If you need / want to redirect the users after logon you need to add wix-location and then use the .to() function where you add .to(“url”); where url is the address to your members profile page. Look in the API section here for all information about wix-location.

Yes I know that, but I want to only redirect those who sign up for the first time or those who didn’t fill out their profile page.

I would try it like this:

  1. set up a collection with a unique ref to every user, either being userid or email
  2. set up a signin/join page that needs Membership
  3. this will trigger the login/join dialog
  4. check the db if this user exists
  5. if so, redirect him to page x
  6. if not, redirect to page y (or .show() all hidden elements on that very page if you don´t want a redirect)
  7. on page y, show a form with anything you want them to fill out, write it to the db with either his userid or email
  8. next time, from 3 on he will go to page x because he already exists

That sounds about right, do you know the code for this?

Hey There Arthos… you brought up a great point… I tried inserting wix.to but not placing right in the code. Did you ever figure this one out?