KeyMe
Error on opening action modal in actionGroup after Livewire update
Upon updating livewire to v3.4.9, I'm facing this error of not being able to open action/header action that is in an action group. Anyone?
Typed property Filament\Actions\MountableAction::$livewire must not be accessed before initialization
7 replies
Replace mounted action passing arguments
After executing one of my custom page action, I replace it with another action passing along arguments, but when I tried to die n dumped it in the send email action class it returned null. Could someone tell me what I'm doing wrong? The $data array wasn't null in after() method.
ViewOrder.php
SendEmail.php
2 replies
DateTimePicker timezone issue
In an action, I have checkboxes where upon checking/un-checking, the corresponding datetimepicker field is set to now()->format('Y-m-d H:i:s') otherwise null. Casted the db fields to 'datetime'. Applied the timezone() method to use current user's timezone.
Weird thing is, fields that are saved before and after applying timezone() are stored in database differently, the prior, stored in UTC & displayed as user timezone, the latter, stored in user's tz & displayed as UTC.
On top of that, for fields stored as UTC in db, when i uncheck/re-check to fill new timestamp, it displays as UTC, is that normal?
Below is the form:
1 replies
Pass action form data to extra modal footer actions
I have a mountable action where i defined its form(), action(), and another action button defined in the extraModalFooterActions(). How do i pass the parent action's data array to the child action?
2 replies
Accessing reference to calling object from action class
I created an action class that extends the original action, override setUp(), and called it from a resource viewrecord page. How do i inject viewrecord instance so that I can call its' fillForm() to refresh the page once the action is performed?
class ReviseUserDetail extends Actions\Action
6 replies
Listing multiple values for a relationship with another attribute
I have a vehicle relation manager table where i want to display every IMEI numbers associated with the vehicle. On top of that, I want to format the imei list to include its' type as below.
Current code, obviously doesnt work:
Current code, obviously doesnt work:
14 replies
Relationship record not automatically created in resource View page action
I have an Order model with relationship of hasOne Training model.
After order creation, there is an action modal in the ViewOrder page that prompt user to enter remarks.
Upon action submission, I was hoping a related Training record would be created if not existed yet, else its remarks field should be updated but alas only updating existing record works. I've simplified the code below for review purpose.
Order class
Training class
7 replies
Action modal form with many field to prefill
I have an action with modal form, initially i follow the documentation example to fill the form with default data, but now theres too many fields in the form, is there another way that gives less redundancy?
14 replies
CreateOptionForm in Repeater with dependent select component
I have a Repeater with dependent addon_name select field that ties to the addon_type field. Now I want users to be able to add new add-on name options to the list, like others, the problem is I didn't define the relationship() for the addon_name from the get-go. Bcs as you know I use the customization technique for the dependent name options. How do I go about this?
9 replies