Referencing a text return

Can someone tell me how I would reference the returned value of this expression so I can use it in a workflow, like I want to say name = this reference.

I think you can use an input element instead of text, make the initial content of the input be that dynamic expression.
Then in your workflow you’ll reference the value of the input

if it’s in the same workflow you can find it under result of step (1,2, whatever)'s ingredient. If you want to log it in the client for later use make a custom state on any page element called “ingredient” and then in the workflow do name=page element’s ingredient’s name.

EDIT: I hadn’t picked up on this just being a text element on the page and not part of a workflow already. You can just do that same search at any point inside a workflow. Or best practice imo, make the aforementioned custom state and have a page load workflow with your expression that fills it. then no more searches you just keep referencing that custom state.

ps. do you really have a field on the ingredient data type that’s also called ingredient?

You can reference the returned value by storing it in a state or a custom state in Bubble. Then use that state in your workflow actions where you need to reference the value.

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