czehnter
Toggle buttons not working in form integrated in custom ViewRecord page
Hi, I have integrated a form in a custom
ViewRecord
blade template. The form is defined in the Resource
as secondForm()
and then integrated into the ViewRecord
by defining the getForms()
method in the ViewRecord
class (e.g. UserResources/Pages/ViewUser.php). The form is rendered in the blade template via {{ $this->secondForm }}
. This works in principle, but for every Toggle
element used in the form I get the following console error: Livewire Entangle Error: Livewire property ['data.removal'] cannot be found on component: ['app.filament...view-user']
. What could cause this error?2 replies
Selectively saving form builder fields in different DB columns
Hi, I built a large form with many input fields in a livewire component with form builder. Most of the fields will be saved directly to their corresponding DB columns, so just creating a new model with
$this->form->getState()
is fine. However, I want to exclude some of the fields and combine them into a single JSON DB column. Is there any way to exclude fields from the getState()
method and save those manually?5 replies
Triggering afterStateUpdated() with $set()?
Hi, I'm trying to to use the
afterStateUpdated()
method on a TextInput Field, that has been updated/filled by the $set()
method from another field. Updating the value using $set()
does not seem to trigger the afterStateUpdated()
method (unless I'm doing something wrong). Is this not possible? Or how can I achieve this?7 replies