© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
wyn

Can't create a custom field

I'm trying to create a custom field which takes some pictures from local disk, display them with a text field next to them so i can specify product image color.

Livewire Entangle Error: Livewire property ['colors.livewire-tmp/livewire-tmp/AkQmjBzqVhyP0VbvFko66HcrzJXdDF-metaU2NyZWVuc2hvdCAyMDIzLTEwLTE3IGF0IDAwLjU0LjQ0LnBuZw==-.png'] cannot be found on component: ['app.filament.resources.shop.product-resource.pages.create-product']

Also i tried using x-dynamic-component but im getting undefined getFieldWrapperView

<pre>{{ json_encode($colors, JSON_PRETTY_PRINT) }}</pre>
@foreach ($colors as $index => $image)
    <div style="display: flex; flex-direction: row; justify-content: space-between; align-items: center">
        <img src="{{ asset($image['file']) }}" alt="Image" style="max-width: 100px; max-height:50px">
        <input type="hidden" name="image_file_{{ $index }}" value="{{ $image['file'] }}">
        <div x-data="{ colorState: $wire.$entangle('colors.' + 'livewire-tmp/{{ $image['file'] }}') }">
    <input x-model="colorState" style="color:black" type="text" name="color[]" placeholder="Color for {{ $image['file'] }}">
</div>
    </div>
@endforeach
<pre>{{ json_encode($colors, JSON_PRETTY_PRINT) }}</pre>
@foreach ($colors as $index => $image)
    <div style="display: flex; flex-direction: row; justify-content: space-between; align-items: center">
        <img src="{{ asset($image['file']) }}" alt="Image" style="max-width: 100px; max-height:50px">
        <input type="hidden" name="image_file_{{ $index }}" value="{{ $image['file'] }}">
        <div x-data="{ colorState: $wire.$entangle('colors.' + 'livewire-tmp/{{ $image['file'] }}') }">
    <input x-model="colorState" style="color:black" type="text" name="color[]" placeholder="Color for {{ $image['file'] }}">
</div>
    </div>
@endforeach
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Create a custom field with two fields (downloadable)
FilamentFFilament / ❓┊help
2y ago
How can i create a custom field that contains other fields?
FilamentFFilament / ❓┊help
8mo ago
Can't listen to events on a custom field
FilamentFFilament / ❓┊help
2y ago
Create Custom Form Field (Image Selector)
FilamentFFilament / ❓┊help
11mo ago