Drop Down Value - Selected Value Keeping Visible

HI,

I am struggling with the Drop-Down Box:

I would like to keep the Selected Value from the Drop-Down Box (Item List) visible in the Drop-Down Box when changing to another Client-Form and coming back,

So, the value should appear as long I do not change the Item over the Drop-Down Box

Actually, the first Item is showing up again.

Any Idea or Solution?
Thank you,
Gerhard

A general suggestion:

You can save the values you wish to keep track of in a variable that is accessible when you need it. Then, populate the component accordingly when you return to the form.

I’m pretty sure that there are examples on the forum about saving/keeping track of variables when changing form.

See: Ordering system with multi page form - #3

You can also use something like the routing module from Anvil Extras, which caches the forms. So when you go back to the same form again it’s the same instance and will still have the same value selected.

Thank you very much for the suggestions, very helpful :slight_smile:
I found a simple solution that worked very well by defining the attributes!

Nice weekend,
Gerhard