nitinkaware
nitinkaware
FFilament
Created by acroninja on 7/8/2023 in #❓┊help
Select On Change
I was also experiencing the same error: Cannot read properties of null (reading '__livewire'). The issue was caused by passing a closure to the options method, along with reactive method. I resolved the issue by removing the code from the closure and using a direct array instead.
13 replies
FFilament
Created by nitinkaware on 4/28/2023 in #❓┊help
Is there any way to ask user confirmation before file is removed from FileUpload field?
Yes, for notification it's possible. But for the confirmation pop-up, as of now, it's not possible as mentioned. I will try to figure it out if I can find a way. Thanks for the help
12 replies
FFilament
Created by nitinkaware on 4/28/2023 in #❓┊help
Is there any way to ask user confirmation before file is removed from FileUpload field?
Thanks, I figured out that I can override the FilePond field and create my own view and in that view, I can have something like the below in JS
FilePond.setOptions({
beforeRemoveFile: function () { return confirm("Are you sure?"); }
})
FilePond.setOptions({
beforeRemoveFile: function () { return confirm("Are you sure?"); }
})
What I want now is that is there any way to fire up the native confirmation action that Filament has. for e.g like requiresConfirmation?
12 replies
FFilament
Created by nitinkaware on 4/28/2023 in #❓┊help
Is there any way to ask user confirmation before file is removed from FileUpload field?
The requiresConfirmation method exits on the action, and not on the field. The file pond do. have a beforeRemoveFile callback, but I am not sure how can I hook it into JS.
12 replies
FFilament
Created by nitinkaware on 3/17/2023 in #❓┊help
How to disable create button when user click on it to prevent duplicate record creation?
@toeknee_iom Can you elaborate more on "check your action"? Not sure what it meant?
6 replies
FFilament
Created by nitinkaware on 3/17/2023 in #❓┊help
How to disable create button when user click on it to prevent duplicate record creation?
Ohh yes, it is. Not sure how two records get created when I was trying to do so. It may be possible two fast double clicks triggered two different requests?
6 replies