Informations about User field Type

Hello,

I just registered on Bubble.io and I’m actually having a blast. This is quite fun. However I’m pretty new and have a question about the User field type.

I created a Data Type called : Seller with a name field, email field, etc.. and the user type field.

The problem is, when I create an account, the informations isn’t replicated in the Seller Data type.

I did a simple thing which was when clicking on the submit button :

Step 1 → Sign up the user with the email as the inputEmail’s value, same with password
Step 2 → Log in the user with the email as the inputEmail’s value, same with password
Step 3 → Create a new seller with the name as the inputname’s value, the email as the inputEmail’s value and the User as the Current User.

It did work once but now it doesn’t work anymore after tweaking a few things.

What would be the reason this doesn’t work ?

Thank you very much

In step 3 use Result of Step 1… instead of the current user

The reason it worked First time is because you are most likely still logged in as the current user so there is conflict in your workflow. This will fix that.

Secondly, don’t store the email on the Seller object, the User object is the only one that will allow you to manage unique emails for login with Bubble.

why would you do such a thing anyways.. that’s redundant. you could simply access the seller’s email by accessing seller → User → email

Makes sense for not storing the email on the Seller object, thank you.

However, I couldn’t find the “Result of Step 1” and that’s the reason I used Current user.

Is there a way to display the Result of Step 1 ?

You don’t need to log the user in when you sign them up.
The “current user” is set way before he even signs up so try using current user’s email and name instead of using the input’s value.

A second approach would be to use a backend workflow when a thing is modified (user sings up) and run that same action from there. Something like this

I’m gonna try a few things and explore for a bit. I don’t even know what the backend workflow means.

It seems like I made what I wanted works but I’ll gladly explore other options and see which one is the best.

1 Like