Susan
Susan
FFilament
Created by Susan on 11/30/2023 in #❓┊help
Make the field required only on creation.
Yeah sure.
6 replies
FFilament
Created by Susan on 11/30/2023 in #❓┊help
Make the field required only on creation.
->required(fn (string $context) => $context === 'create') This is working for me. Thank you.
6 replies
FFilament
Created by Susan on 9/1/2023 in #❓┊help
How to override the submission of a form in a custom created page class.
Then how can I achieve this functionality. Need to create page with a form having three fields and to submit that after validating the fields. No need of list , view, edit pages.
7 replies
FFilament
Created by Susan on 9/1/2023 in #❓┊help
How to override the submission of a form in a custom created page class.
I'm trying to customize the submit function. I created a submit function inside the "ResetPassword" . " public function submit() { $data = $this->form->getState(); // Processing the password resetting // Redirect back to the form page return redirect()->route('filament.pages.reset-password'); }" When I click the submit button on the form, need to get all the field values [username, password, newpassword] inside the sumit method in the "ResetPassword" page class. But as per my current code, I only the token value inside the submit function. Below given is my view page. " <x-filament::page> <div class="container mx-auto py-2"> <div class="flex"> <div class="w-full"> <form action="{{ route('filament.pages.reset-password.submit') }}" method="POST"> @csrf {{ $this->form }} <div class="filament-page-actions filament-form-actions"> <button type="submit" class="text-white"> Submit </button> </div> </form> </div> </div> </div> </x-filament::page> "
7 replies