I’m trying to build a username field by combining first name and last name. I’m able to do that and store the value in a text field so I can see it on the screen. Now, I want to store the value in the text field in a custom state so I can use it in workflows, similar to like I would do in C# or Java. I’ve been struggling with this for a while now. Is there a way to achieve this? Another option is to skip storing the value in the text field and just use the text field. However, I don’t seem to be able to get to that in my workflow either.
You can, in fact, compose a concatenation directly in the “pure expression” type box. Again, this may seem fiddly, but reading my explanation of how to do this (and why you have to) might be illuminating. Do not expect Bubble to “fix” this as nothing is in fact broken. The assignment field in a custom state is simply a general-purpose expression field not a text-specific expression field.
Read on and I think you’ll understand what I mean (you will also learn how to get to a full-featured text expression field from any general expression field, using a boolean expression):