© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
2 replies
tesse05

handle input value in a custom Page view

I have a custom Page
class ShiftPlanning extends Page
class ShiftPlanning extends Page

the view contains a table which has an input select like:
`php   
@for ($i=0;$i<count($weeksPerMonth['weeks']);$i++)
        <td class="p-2">
            <x-filament::input.wrapper>
                <x-filament::input.select
                    wire:model="assignments_{{ $i }}"
                    wire:key="user_{{ $id }}_week_{{ $i }}">
                    <option value="">Assigna un torn</option>
                    @foreach($shifts as $shift)7
                    <option value="{{ $shift->id }}">{{ $shift->name }}</option>
                    @endforeach
                </x-filament::input.select>
            </x-filament::input.wrapper>
        </td>
    @endfor
`php   
@for ($i=0;$i<count($weeksPerMonth['weeks']);$i++)
        <td class="p-2">
            <x-filament::input.wrapper>
                <x-filament::input.select
                    wire:model="assignments_{{ $i }}"
                    wire:key="user_{{ $id }}_week_{{ $i }}">
                    <option value="">Assigna un torn</option>
                    @foreach($shifts as $shift)7
                    <option value="{{ $shift->id }}">{{ $shift->name }}</option>
                    @endforeach
                </x-filament::input.select>
            </x-filament::input.wrapper>
        </td>
    @endfor

I'm trying to get the assignments wire:model property after each updated with
 public function updated($field,$value)
    {
        dd(field);
    }
 public function updated($field,$value)
    {
        dd(field);
    }

updated() hook in the Page, but it does nothing.. how to achieve?
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

how use viewData value at ViewField in the blade view
FilamentFFilament / ❓┊help
3y ago
How to get method value in custom column custom view page ?
FilamentFFilament / ❓┊help
3y ago
default value in custom page
FilamentFFilament / ❓┊help
3y ago
Using a FileUpload input in a Custom Page
FilamentFFilament / ❓┊help
2y ago