namrata
namrata
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
Ohh!! Thanks a lot
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
this is my code, This extends settings page, which extends page
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
<?php

namespace App\Filament\Pages;

use App\Settings\SiteSettings;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Form;
use Filament\Pages\SettingsPage;

class ManageSite extends SettingsPage
{
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';

protected static string $settings = SiteSettings::class;

public function form(Form $form): Form
{
return $form
->schema([
Section::make(' Settings')
->schema([

Select::make('date_format')
->options([
'm/d/Y' => date('m/d/Y'),
'n/j/y' => date('n/j/y'),
'F j, Y' => date('F j, Y'),
'M j, Y' => date('M j, Y'),
])
->default('m/d/Y')
->label('Date Format'),

Select::make('time_format')
->options([
'g:i:s a' => date('g:i:s a'),
'g:i:s A' => date('g:i:s A'),
'H:i:s' => date('H:i:s'),
]),



]),
]);
}
}
<?php

namespace App\Filament\Pages;

use App\Settings\SiteSettings;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Form;
use Filament\Pages\SettingsPage;

class ManageSite extends SettingsPage
{
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';

protected static string $settings = SiteSettings::class;

public function form(Form $form): Form
{
return $form
->schema([
Section::make(' Settings')
->schema([

Select::make('date_format')
->options([
'm/d/Y' => date('m/d/Y'),
'n/j/y' => date('n/j/y'),
'F j, Y' => date('F j, Y'),
'M j, Y' => date('M j, Y'),
])
->default('m/d/Y')
->label('Date Format'),

Select::make('time_format')
->options([
'g:i:s a' => date('g:i:s a'),
'g:i:s A' => date('g:i:s A'),
'H:i:s' => date('H:i:s'),
]),



]),
]);
}
}
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
No description
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
Could that be causing issues ?
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
This ia actually not in resource but in page
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
- Upgrading filament/filament (v3.2.92 => v3.2.98) but still not working
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
Sure.
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
No description
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
No description
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
The default is being set ?
23 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
Create Page
23 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
If you need to insert in the both tables all the rows in the csv then dni must also be in payment. Since it looks like you are trying to upload all the data in the both fields
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
Can you explain in which database are you trying to write the import values ? In employee or payment ?
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
I got it. I sent the required value in the options where I call the importer.
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
I have a resource called organization resource whose edit organization has the importer. The importer fills or uploads the data in another resource called invitations which has organization id. The importer doesn’t have the organization id. So now I have to pass the selected organization id to the importer at the time of uploading it
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
Is there any way to pass data in the import from where it is being used ? Like I have userimporter but I have this in program model and I need to pass a specific organization id in the importer itself. Is it possible ?
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
it is failing due to my database requirements. but I could not figure out how can I pass the data that is not in the csv while uploading.
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
I don't know what I have missed
20 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
also it is trying to upload all the values in the csv instead of just the ones that I have asked
20 replies