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,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 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
8mo 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
11mo ago