JPomper
JPomper
WWindmill
Created by JPomper on 7/30/2024 in #help
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.
8 replies