Group Linking To Data Type

Hey guys,

I’m trying to fix my user onboarding process. On step one I’m asking the user “What type of user are you”?

Inside the workflow. How can a make a group equal a data field?

Hi @samhouston1107,

How is the field saved on the user? As a text (for example “coach” and “athlete”, or as a link to another data type?

Yeah, it’s text.

Data Type = User Type
User Type Field= Type Label (Text)
Type Label = Coach, Player

In that case, you can set the content of the User Type Field in the workflow itself. Set up two different workflows, one for each of the Elements that are being clicked. Then set the value of the User Type in each of the workflows.

The example below is what would be run if the user clicked the Coach element.

image

I’m trying to type coach but bubble.is keeps erasing it every time I push enter.

Really? Sometimes, if the mouse is hovering the Dynamic Content dropdown menu, Bubble interprets you pressing enter as you picking the top menu choice instead of confirming the text. Could that be it?

Yeah, it’s not letting me add Coach.

Ah, ok, I see. User Type is a Custom Data Type, not text. The reason Bubble is deleting it is that you’re trying to enter text into a field that should be the User Type data type.

In that case, you can’t type in the value as a text. You have to point to the database record in another way.

One way to do it is to use Do a Search for, pick User Type as type, and set a constraint on the field Type Label with the value Coach. That way, you are telling Bubble to search for User Types, and filter it to Data Types who’s label includes Coach. In your case it will produce one result only.

Yes, sorry, forgot to mention you need the :first item parameter.

That should do the trick, did it work as you wanted it to?

1 Like

I think it did. But I just noticed another issue. My data field is all numbers.

Fixed it.

Thanks so much man.

1 Like

No probs!

This topic was automatically closed after 70 days. New replies are no longer allowed.