F
Filamentβ€’12mo ago
jepewsykes

Hi Dev ;)

How Totally Hidden Field Depands On Select Event On View And Edit Page Detail On video I want Keeping a depends on selected value to make it hidden on view or edit page Thx U Dev
2 Replies
Tieme
Tiemeβ€’12mo ago
i Think you can use something like this
->hidden(function(Livewire $livewire, ?Model $record):bool{
if($livewire->view('view') and $record->select == ''){
return true;
}
return false;
})
->hidden(function(Livewire $livewire, ?Model $record):bool{
if($livewire->view('view') and $record->select == ''){
return true;
}
return false;
})
For documentation see : https://filamentphp.com/docs/3.x/forms/advanced#injecting-the-current-state-of-a-field
jepewsykes
jepewsykesOPβ€’12mo ago
ya thx u bro i fixed with same way but i put operation and model record and same if πŸ‘ thx bro
Want results from more Discord servers?
Add your server