Arshavir
Arshavir
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
as @Leandro Ferreira suggested
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
$this->form->fill();
$this->form->fill();
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
changed to
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
$this->form->fill($this->data);
$this->form->fill($this->data);
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
Solved
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
Scenario is if I toggling to On, than I want to disable ToggleButtons, Set value 0 (0 option will add later, this is second challenge, need to hide 0 option for user ) for example, and Validation not required
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
Also I noticed
ToggleButtons::make('toggleButton')
->disabled(fn (Get $get): bool => ! $get('toggle'))
->default('1')
->grouped()
->options([
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
]);
ToggleButtons::make('toggleButton')
->disabled(fn (Get $get): bool => ! $get('toggle'))
->default('1')
->grouped()
->options([
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
]);
default() not working too
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
@Ross Bearman disabled working
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
public function mount(): void
{
$this->form->fill($this->data);
}
public function mount(): void
{
$this->form->fill($this->data);
}
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
no error
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
yes ofcourse
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
in Custom Page
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
in addition default() not working too
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
Custom Page
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
But not working
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
ToggleButtons::make('toggleButton')
->grouped()
->requiredIf('toggle', false)
->options([
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
]);
ToggleButtons::make('toggleButton')
->grouped()
->requiredIf('toggle', false)
->options([
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
]);
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
If field is disabled, do not require
Toggle::make('toggle')
->dehydrated(false)
->live(),
Toggle::make('toggle')
->dehydrated(false)
->live(),
40 replies
FFilament
Created by Arshavir on 6/20/2024 in #❓┊help
Toggle on Section Header
No description
3 replies
FFilament
Created by Arshavir on 5/21/2024 in #❓┊help
ToggleButtons in RelationManager Attach getting Error "Array to string conversion"
Thanks Dan, problem solved!
18 replies