How to preserve values in select/dropdown fields?

Hi,
Currently I display a select/dropdown field in a tab. I noticed when selecting a value but changing tabs. Later when I go back to the previous tab, the value is not there anymore. Is there anyway to preserve the value when changing values?

I was thinking of adding a variable “currentResult” to the “initial value”, and always updating whenever a new value is selected, but is there an easier way to do this? Thank you.

when you de render the input its going to reset the variable so you would have to do as you suggested and have something external that saves it. like your currentResult variable

Thanks, Yes, I thought this was probably the only way to go. Hoping in the future there is something similar to “collections” like “preserve on navigation”.