WindmillWWindmill
Powered by
JPomperJ
Windmill•2y ago•
7 replies
JPomper

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.
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Any changes to state trigger a refresh on one of my dropdown select component?
My_Name_Is_ShefMMy_Name_Is_Shef / help
3y ago
Loading tab
leinadLleinad / help
9mo ago
Tab Component: How do you select a different tab, when using "Invisible on View"?
Trevor SullivanTTrevor Sullivan / help
3y ago
Tab Completion Bug
ZachZZach / help
12mo ago