plaete_
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