Temp. variable that can be accessed?


Is it possible to create a temporary variable in retool that I can access between components in a stepped container?

I.e. I want to take the company id which is selected via a dropdown, and then apply this value to other fields which are a few steps later....

hope this makes sense

Hi @maillme! Certainly :slightly_smiling_face:

One option is to use temporary state to temporarily update a variable. Something to keep in mind is that temp state values are reset each time your app is loaded, but that sounds like it would work for your use case. We have docs here: https://docs.retool.com/docs/temporary-state

Let us know if this solution would work

1 Like

Thanks Tess, I was looking into temp state - but I found another way to achieve it for now.


Sounds good! Glad to hear you have a solution.

Thanks for letting me know :blush: