Omar
Omar
FFilament
Created by Omar on 1/8/2024 in #❓┊help
Set default value to a select, listening the change from another input
Forms\Components\DatePicker::make('extinguisher_expiration')->live(debounce: 500),
Forms\Components\Select::make('extinguisher_status')
->options([
'true' => 'true',
'false' => 'false',
])
->default(function(Get $get){
if(!is_null($get('extinguisher_expiration'))){
return 'true';
}
return 'false';
}),
Forms\Components\DatePicker::make('extinguisher_expiration')->live(debounce: 500),
Forms\Components\Select::make('extinguisher_status')
->options([
'true' => 'true',
'false' => 'false',
])
->default(function(Get $get){
if(!is_null($get('extinguisher_expiration'))){
return 'true';
}
return 'false';
}),
I am trying to assign a default value to the select, which would be true when having a data and false when not having it, but it does not detect the change of the input date
7 replies
FFilament
Created by Omar on 10/30/2023 in #❓┊help
FormBuilder Select get event Editing
how i can get the event editing in the select input?
Forms\Components\Select::make('equipment_option_id')
->options(function($livewire){
$record_id = $livewire->ownerRecord->id;
$options = EquipmentOption::whereDoesntHave('equipments', function ($query) use ($record_id) {
$query->where('equipment_id', $record_id);
})->get();
if("Here i can get the event?"){

}
if ($options) {
return $options->pluck('name', 'id')->toArray();
}
})
->required(),
Forms\Components\Select::make('equipment_option_id')
->options(function($livewire){
$record_id = $livewire->ownerRecord->id;
$options = EquipmentOption::whereDoesntHave('equipments', function ($query) use ($record_id) {
$query->where('equipment_id', $record_id);
})->get();
if("Here i can get the event?"){

}
if ($options) {
return $options->pluck('name', 'id')->toArray();
}
})
->required(),
5 replies
FFilament
Created by Omar on 10/26/2023 in #❓┊help
FullCalendar plugin error "not found"
No description
3 replies
FFilament
Created by Omar on 10/14/2023 in #❓┊help
How can I change some texts in my login?
No description
3 replies
FFilament
Created by Omar on 10/12/2023 in #❓┊help
Error when run migration / plugins Translation manager
No description
3 replies
FFilament
Created by Omar on 9/7/2023 in #❓┊help
Header in a Card Form builder
2 replies
FFilament
Created by Omar on 9/2/2023 in #❓┊help
How can I refresh a widget so that the variable that I send to it is updated?
No description
5 replies
FFilament
Created by Omar on 9/2/2023 in #❓┊help
how to pass a variable or get a variable from a custom page and get it in a Widget
I have been trying several ways to pass or obtain a variable that I require that is in the custom page where I render the widget but I have not been able to do it, could someone give me an idea on how to do it?
public $form_selected = [];
protected function getFooterWidgets(): array
{
return [
ActivitiesChart::class,
];
}
public $form_selected = [];
protected function getFooterWidgets(): array
{
return [
ActivitiesChart::class,
];
}
3 replies
FFilament
Created by Omar on 8/29/2023 in #❓┊help
How could I add the options to a Select, when the options are inside the relationship in a json colu
3 replies
FFilament
Created by Omar on 8/29/2023 in #❓┊help
How can I assign the options to a Select, when the options are inside a json?
4 replies
FFilament
Created by Omar on 8/28/2023 in #❓┊help
How can I make it work?
13 replies