Saad
Livewire field cannot be found
I am working with dynamic schemas for a repeater. The fields which have AlpineJS integration in them fail to be discovered by livewire i.e.
'data.service_items.4d56e4a8-51fb-4f38-9f9b-7ce71692804d.description_en'
Forms\Components\Select::make('service_category')
->label('Service Category')
->options(Product::$TYPES)
->disableOptionWhen(fn ($value) => $value == Product::PRODUCT)
->reactive()
->afterStateUpdated(function($state, callable $set) {
$fields = array_merge(self::setServiceSchemaFields($state, 'main_form'), self::setServiceSchemaFields($state, 'side_card'));
foreach ($fields as $field) {
$set($field, null);
}
})->required(),
Repeater::make('service_items')
->label('')
->schema(function (callable $get) {
return self::fetchServiceSchema($get('service_category'), 'main_form');
})
->minItems(1)
->maxItems(10)
->disableItemMovement()
->visible(fn(callable $get) => $get('service_category'))
->disableItemCreation(fn(callable $get) => !config('service_schema.'.$get('service_category'))['allowed_multiple_item'])
->disableItemDeletion(fn(callable $get) => !config('service_schema.'.$get('service_category'))['allowed_multiple_item'])
->createItemButtonLabel('Add Items')
->columns(1),
Any idea why I am getting this error? Only the fields with Alpine JS entangle feature fails to work within a repeater like a Toggle field.1 replies