JPomper
JPomper4mo ago

Form State Resets on Tab Changes

I’ve encountered an issue where form fields within tabs lose their content when switching tabs. Interestingly, standard input fields (not wrapped in forms) within tabs retain their values correctly. It seems that the reset behavior specifically affects forms within the tab structure. Is this an intended feature or a known limitation in Windmill? If so, could anyone advise on best practices to maintain form state across tab switches? Any guidance or workarounds would be helpful. For now, I’ve implemented a workaround by storing the form values in the state on change and connecting this state to the default values of the form. This approach works for most input types, but I’ve noticed that date selection fields are not able to use the stored values as default values, unlike other input types.
5 Replies
rubenf
rubenf4mo ago
@Faton could you take a look
Faton
Faton4mo ago
Yes!
JPomper
JPomper3mo ago
Thank you very much for your fast response. I use v1.370.0 of the CE Hey! I just wanted to ask if there is any news on this. I don’t want to stress, but I want to know if I should continue working with the workaround or wait for an update before I continue. Best regards!
Faton
Faton3mo ago
Hi @JPomper, it fixed it a few days ago!
JPomper
JPomper3mo ago
Oh, ok, nice, thank you! Sorry for bothering you again. I checked the release notes, but apparently, I missed it. 😅 Keep up the great work!