oRieN
oRieN
FFilament
Created by oRieN on 1/5/2024 in #❓┊help
repeater field cloneable under cloned instead of going to bottom is possible?
as the title specifies is it possible when i click the clone in a repeater field that the cloned item goes under the cloned item instead to the end of the repeater field?
2 replies
FFilament
Created by oRieN on 9/22/2023 in #❓┊help
Value inside Array not saving when editing
Section::make()
->schema([
Forms\Components\Select::make('type')
->required()
->disabledOn('edit')
->options([
'web-page' => 'Web Page',
])
->live()
->afterStateUpdated(fn (Select $component) => $component
->getContainer()
->getComponent('dynamicTypeFields')
->getChildComponentContainer()
->fill()
),

Grid::make(1)
->statePath('content')
->schema(fn (Get $get): array => match ($get('type')) {
'web-page' => [
Forms\Components\TextInput::make('url')
->label('URL')
->required()
->disableOn('edit')
->helperText("Note: this type won't provide statistics"),
],
default => [],
})
->key('dynamicTypeFields'),
]),
Section::make()
->schema([
Forms\Components\Select::make('type')
->required()
->disabledOn('edit')
->options([
'web-page' => 'Web Page',
])
->live()
->afterStateUpdated(fn (Select $component) => $component
->getContainer()
->getComponent('dynamicTypeFields')
->getChildComponentContainer()
->fill()
),

Grid::make(1)
->statePath('content')
->schema(fn (Get $get): array => match ($get('type')) {
'web-page' => [
Forms\Components\TextInput::make('url')
->label('URL')
->required()
->disableOn('edit')
->helperText("Note: this type won't provide statistics"),
],
default => [],
})
->key('dynamicTypeFields'),
]),
When editing a resource with this fields when I save, the field (web-page) URL goes empty but if i put readonlyOn its fine. The thing is i have other disabledOn('edit') field that still save and dont get empty the webpage URL goes into an json is this a bug or i'm doing something wrong?
1 replies
FFilament
Created by oRieN on 7/31/2023 in #❓┊help
Is there a way to add back the Arrow Up and Down to Order Repeater and Builder Fields?
The drag and drop method most of the times cause this problem (see video) it goes to the bottom of the page when i try to move it down or even up
7 replies