TNDJXD
TNDJXD
FFilament
Created by TNDJXD on 7/17/2024 in #❓┊help
Multiselect hide Placeholder when option selected
No description
2 replies
FFilament
Created by TNDJXD on 3/26/2024 in #❓┊help
How to collapse section on button click
I have a livewire component that is rendering the form I want that when form is submited I collapse section I tried by passing reactive property to form livewire component but it only works on second click even though the prop got updated. Form component PHP https://gist.github.com/TNDJX/c5b730ccec35b98e02f13b8432ca1e64 From component HTML https://gist.github.com/TNDJX/275a1d39917508775a0cfa437c2f7f93 The component holding the form PHP https://gist.github.com/TNDJX/7fc1df22ea4d2836c5c78d2597e29a65 HTML https://gist.github.com/TNDJX/5cf6cf85b428e6ca1521e193104fcebf In the video you can see that it should be collapsed but form is not getting updated.
4 replies
FFilament
Created by TNDJXD on 3/25/2024 in #❓┊help
Sharing State between forms
I have a custom livewire page in which I need to build many custom forms. You can think about it like a wizard but I can't use a wizard for it since the structure will be much more complex. What I want to do is to create multiple forms and render them conditionally on the front end. I have started by having 2 forms and both of them use Section layout. I want that when the first form is submitted perform some DB updates and update the state of the second form. Things that should change are that I want to collapse the first form, extend the second form, and for now just fill the TextInput with whatever the value was in the first form TextInput::make('name') Issues I am having are. 1. When I click next first time nothing happens, only when I click the second time does the collapse/extend get updated ( I did DD in the method submitAffiliateProgram and it does get called the first time but the frontend is not updated ) 2. I can't get value from the first form in the second form.
3 replies