FilamentF
Filament2y ago
5 replies
Aminne

Show error field without closing modal in custom action

Actions\Action::make('disabledTwoFactor')->label('Enable Two-Factor Authentication')>requiresConfirmation()->modalSubmitActionLabel('Enable')
->form([
Forms\Components\TextInput::make('password')->password()
      ->revealable()
      ->required()])
      ->action(
function (array $data) { self::EnabledTwoFactor($data['password']);})->modalWidth('lg'),
Was this page helpful?