JJSanders
addAction function called on page load
When I have a repeater with an addAction function. When I load the page with the repeater on it the
addAction
code is executed. I would expect this to be called only when pressing the action button.
Any suggestions?
Thanks.7 replies
Testing a form action.
Hey,
I have the following action on my ListUsers field:
Now I am trying to write a test:
I am getting an error: failed asserting an action with the name [send] exists.
I am not sure how to continue. I have a button, when I press that button a form loads and I want to test that when I press that button, en email is sent.
Thanks for your help.
21 replies
Search in a specific column
Hello,
I am wondering if it is possible, be it in the global search or in the search of the table to search in a specific column? For example I would like to search for "foo" but only in the reference column?
Thanks
6 replies
Custom action modal
Hello,
I have got the following question.
I have created a custom action. The action gennerally doesn't need a modal. But sometimes the action does need a model which should then show a form in the modal where the user should fill out some input (this needs to be validated etc)
I can't figure out how to show the modal conditionally.
My code at the moment looks like this:
Can Anyone guide me in the right direction? Thanks !
9 replies
Testing a TextInputColumn
Given I have a TextInputColumn. I want to test inputing values and other behaviour.
Given I have
TextInputColumn::make('amountOrdered')->label('ordered'),
Now I want to write some tests around this. So I tried:
However this gives me an error:
Any suggestions?13 replies
Use `cloneAction` to only clone one column
How can i use the
cloneAction
method to only clone for example the product_id and not the amount ordered in a repeater?
I am trying to figure it out from here:
https://filamentphp.com/docs/3.x/forms/fields/repeater#cloning-items
It accepts a closure but I am not sure how to work out the closure.
I am stuck here:
Thanks4 replies
Uncaught Snapshot missing on Livewire component with id: QAcNIGM0wsdXZxTaZYW7
Hello,
I have a widget on the dashboard panel and I run into this error:
I have logged a few lines in livewire.js
This gives me the following output:
I am not sure how to solve this.
I would like to welcome some suggestions. Thanks
67 replies
Stop job from executing
Hello,
My errorlog keeps filling up with these errors:
How can I stop them from being executed over and over again.
I am running on redis. I have set the tries to:
'tries' => 3
on production.
But it keeps coming back and have no idea how to stop it. Any suggestions?2 replies
Small documentation page
Hello everyone,
I was asked by my client to build a page / popup where the admin can write some usage instructions for the application and the users can read this instructions. It doesn't need to be sophisticated it can be just a HTML field which is then represented to the end user as html.
Before I decide to build this myself, I was wondering if there is already a plugin for this .
9 replies
Avoid duplicate code
Good morning,
Lets say I have two resources:
-> Brands
-> Ingredients
Both have a relation with products. So for both resources I have separate a relationmanager to products.
Both relationmanagers have a table with the same code for table. My question is how what are ways to abstract this code so that I only have the tableoverview for products once?
Thanks.
6 replies
Set the label of a select using $set
In my code I have
This code sets the value of my Select after a new item has been added using a
CreateOptionForm
. This succesfully sets the value of the Select. Does anyone know if it is possible to also set the label of the select somehow using the $set method?
Thanks13 replies