© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
maltebaer

handle form component visibility with javascript

hey folks, i ran into the following problem.

using the form builder i render a survey that has a lot of subquestions (a question only visible if a certain answer was given). locally everything is fine. however live it feels very slow (especially with throttled network) and if you make multiple clicks per second (e.g. checkbox list), you even loose state because of the re-render.

now my idea is to initially render all the questions and do the show/hide part with javascript.

what is your suggested approach on tackling this issue? is there a
hidden()
hidden()
/
visible()
visible()
javascript counterpart to the already available methods? how do you track the state in the browser? is there some kind of obejct i can hook into?

fyi: additional i use a wizard to display only small chunks of the survey at once.

any kind of input/ideas highly appreciated!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

component javascript
FilamentFFilament / ❓┊help
3y ago
loading javascript for specific form field component?
FilamentFFilament / ❓┊help
14mo ago
Conditional visibility of form fields
FilamentFFilament / ❓┊help
15mo ago
Custom form component with methods
FilamentFFilament / ❓┊help
3y ago