Abi
Abi
Explore posts from servers
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
ok, now that works, thank you very much.
15 replies
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
ah ok, let me check that
15 replies
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
Yes, I followed the documentation. how do I go about validating the form on form submission? if I don't use $this->validate() it doesn't seem to validate.
15 replies
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
I don't have a statePath setup
15 replies
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
ok, so, I am using Filament Forms as standalone and not within the Admin Panel. I have setup all the form elements inside the form(Form $form) method with the necessary validations for each form element. On form submission, when I call the $this->validate(), it doesn't seem to use the custom message I have setup for each element, but does the normal validation message configured on the lang file.
15 replies
FFilament
Created by Abi on 8/6/2024 in #❓┊help
Cannot get custom Validation Message for Select Component to work
Am I missing anything? I tried to use native() as well and doesn't work with that as well.
15 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
tried the above suggestion, did not help. I have to force reload the page after submission using $this->js('window.location.reload()'); as a hack.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
do I need <x-filament-actions::modals /> if I don't have any modals?
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
one additional note though, I am force injecting livewire and have 'inject_assets' => false on the livewire config since I use alpine js components on my app
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
anything else seem odd to you on the code? Just not sure where I am going wrong, the problem seems to be just this form alone
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
No description
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
Here is my form code
<form class="mx-auto contact-us-form" wire:submit.prevent="sendMessage">
{{$this->form}}

<div class="flex items-center justify-between sm:col-span-2 mt-6">
<button type="submit"
class="inline-block px-8 py-3 text-sm font-semibold text-center text-white transition duration-100 bg-blue-600 rounded-md outline-none hover:bg-blue-500 active:bg-blue-700 ring-blue-300 md:text-base">
Send Message
</button>
</div>
</form>
<form class="mx-auto contact-us-form" wire:submit.prevent="sendMessage">
{{$this->form}}

<div class="flex items-center justify-between sm:col-span-2 mt-6">
<button type="submit"
class="inline-block px-8 py-3 text-sm font-semibold text-center text-white transition duration-100 bg-blue-600 rounded-md outline-none hover:bg-blue-500 active:bg-blue-700 ring-blue-300 md:text-base">
Send Message
</button>
</div>
</form>
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
No description
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
correct
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
I only call $this->form->fill() after the form is submitted to reset it.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
if the form is used only to accept data like a contact us form, do I still need to call the form->fill() method on mount?
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
Yes, the form displays correctly, but i am able to submit the form only once and the next time I try, I get a console error as mentioned above. The problem is, I have this problem only with this single form and not the other forms on the project, still trying to figure what the issue may be.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
any advice on why this issue may occur? The only way I can re-submit the form again is by refreshing the page and again only once.
22 replies
FFilament
Created by xerk4497 on 5/11/2024 in #❓┊help
Create Policies for each Auth Model (Multi Panels)
try and see if this works inside your Policy methods. I was planning to use this.
if (Filament::getCurrentPanel()->id() === 'admin') {
//Policy Condition for admin panel goes here
}
if (Filament::getCurrentPanel()->id() === 'admin') {
//Policy Condition for admin panel goes here
}
5 replies