Naren
'Create' - 'Create & create another' validation
Hi, I've encountered a similar issue when implementing a form within a Livewire component. The 'Create' button seems to trigger the default HTML form validation. Has anyone found a way to specify whether to use client-side (local) validation or server-side validation within Livewire?"
13 replies
Updating parent form state from a child component in Filament's Repeater
Thank you for your help. After testing your suggestion further, I found that by using $set('../../days_taken', 1), I'm able to traverse the structure and successfully update the state of the parent component from within the child component. This solution works perfectly for my use case.
Thank you again for your valuable input. Your assistance helped me resolve the issue.
10 replies
Updating parent form state from a child component in Filament's Repeater
Thank you for your suggestion. I tried using $set('../../../days_taken') to traverse the structure, but unfortunately, it doesn't seem to work in this case. The $set function doesn't seem to affect the state of fields outside the current component scope.
Is there another way to update the state of a parent component from within a child component in Filament? I would appreciate any alternative approaches or workarounds you might suggest.
10 replies