Loosing a really good project because of the slowness in loading components
How can we make the input fields hide/show conditionally without sending requests to the server?
I am developing a car booking project and there my client wants to use the form which loads the form components quickly like we use javascript to show/hide input fields which is much faster than FilamentPHP sending request to server and render it again.
I am using a Repeater with displays conditionally but it is quite slow like it takes 1.2 to 1.5 seconds to load even for a fresh project in production. Also the conditional input fields load slow as compared to the project (angular project) client is currently using and he says the speed is the main part of this form.
Please let me know how can I make the components show/hide dynamically based on other form inputs but not send requests to server at all.
Thank you
I am developing a car booking project and there my client wants to use the form which loads the form components quickly like we use javascript to show/hide input fields which is much faster than FilamentPHP sending request to server and render it again.
I am using a Repeater with displays conditionally but it is quite slow like it takes 1.2 to 1.5 seconds to load even for a fresh project in production. Also the conditional input fields load slow as compared to the project (angular project) client is currently using and he says the speed is the main part of this form.
Please let me know how can I make the components show/hide dynamically based on other form inputs but not send requests to server at all.
Thank you
Solution
I figured it out by adding variables in CreateBooking.php and set the value of each show/hide to those variables as well and then using them with x-init.
It worked great
It worked great