bwurtz999
Issue With Searchable Select
Hey All - I have a dynamically created schema as shown below:
Each event can have multiple orders, and each order has many selections. So instead of using a relation manager to make selections, I am dynamically generate this schema using the
->getEditForm()
function and displaying it directly on the EditEvent
form.
I'm running into an issue with using searchable()
. When I use searchable, all of the menu options are shown based on the first order. But when searchable()
is not used, the menu options are displayed correctly based on the order
that is passed to the function.
Does anyone have any ideas about what might be going on here? Thank you!2 replies
Updating a Relation Manager Form Without Closing
Hey all - I am upgrading my Livewire version to
3.5
from 3.3
and I've run into a problem. I need to update a relation manager form without closing it and reopening it.
In the old version, I use the following:
Basically, this is all happening on the EditEvent
page. Each event can have many Orders
. Each Order
has many Selections
. I want users to be able to make selections and view the menu they have picked in real time in the modal that appears (updating after each selection). The selections appear at the top of the form and the section to make a new selection is at the bottom. This works in 3.3
but not above. Does anyone know why?
In general, can anyone suggest a better way to present what I am talking about? I don't like my current solution but it works.
Thanks in advance2 replies
Unable to check existence for: item_photos
Hello - I am having an issue with file uploads in forms. I get the error above thrown from
League\Flysystem\UnableToCheckDirectoryExistence
. This started recently. I have tried updating all dependencies but no luck. What's even more strange is that I only get this locally - not in staging or production.
I use an S3 bucket for local testing and I have checked that the bucket is publicly accessible.
For context, this is a standard Filament resource using the form
from the ItemResource
class.
2 replies
Renderhook Cannot Received Dispatched Event
Hello,
I am using a renderhook to include some custom JS on a specific page using:
The JS renders on the page correctly. I have confirmed that it renders properly using:
I cannot handle any dispatched events. I have tried:
Do I need to modify the StarJS Livewire component? What am I doing wrong?
Thanks!
8 replies
ExportAction 502 Bad Gateway in Staging/Production
I upgraded to Filament 3.2 to use the new ExportAction. Awesome feature and works locally without issue.
When I push to staging/production I get a 502 Bad Gateway error. I know it's not a lot to go on, but I'm not sure what's going on. I use S3 for my file system. The file is created and I can download it if I manually go into S3. Using Vapor if that matters. Thanks!
9 replies
Refresh Form With Dynamic Element Names
I have a form that I call from a relation manager. The form has two pieces - the first piece shows the current items in the order and allows customers to modify those selections. The second piece allows customers to make a new selection. When the customer submits the new item, I want the form to refresh and show the updated selections.
I can trigger the refresh using:
This process works for modifying a selection. However, when I try to use it for adding a new selection I get the error
Livewire Entangle Error: Livewire property cannot be found
. So there is a form section for the newly selected item but none of the values are filled in correctly. I define the form component using
So it is named dynamically. This might be more of a Livewire question than an issue with Filament. But basically my question is - how can I manipulate a value (wire:model
) that is not present when the form is initially loaded.
Thank you!3 replies
Fast Pagination
@Dan Harrin I implemented the trick for fast pagination you outlined (https://filamentphp.com/community/danharrin-fast-table-pagination) but there is one issue. When selecting
All
records, it returns an error for trying to multiply string * int
.
I changed the function to:
and that avoids the error. I'm not sure if there is a better way around this.
I didn't see a way to comment on the community post so I'm doing it here. Just wanted you to know. Filament is amazing - thank you!7 replies
How to speed up the search function on a table with relationships
I have a table with ~300 records and searching the table in production takes close to 10 seconds. Two of the
searchable()
columns are relationships. I have a different resource with a similar number of rows (but no relationships) and searching takes less than 1 second.
The docs say that relationships are already eager loaded by default. Could I have accidentally disabled eager loading somehow? Is there anything I can do to speed up the search process with relationships?37 replies
Custom Infolist Entry CSS
Has anyone else had an issue getting custom CSS classes to render properly? I have the following code:
The custom CSS (
grid, grid-cols, etc.)
only render properly if I include @vite
in the component. But the issue is that I've tried this before and I know it only works locally. It won't work in production. I feel like I'm missing something simple. Any ideas?24 replies
Listen for Event on Custom Page
I'm trying to listen for a dispatched event on a custom page and I must be doing something wrong. Can anyone help me out?
I've tried listening in both Alpine and in JS. Neither one is working. I must be missing something.
3 replies
Set Key-Value Data from Custom Page
Hello - I have a custom page that implements a form. The page allows users to scan barcodes. I want those scanned barcodes to appear as the values in the
cards
field.
My page is correctly emitting the scan event to addCard
, but I can't figure out how to dynamically set the cards
array and get it to update on the page.2 replies
Extending the Base Filament Layout
Hey All - I have a custom page and I am trying to add to the standard
base
layout for Filament (I need to add to the page <head>
). I created a new component docs-layout
and then went to the Filament vendor folder and copied the base layout into the new docs-layout
file. Without making any changes, when I load the page I get an error. It says Undefined variable $livewire ... in docs-layout
. When I don't copy and paste and simply use
it works fine - but I can't make the changes that I need to. What am I missing here? Thanks!2 replies
Refresh Custom Modal Form
I have a modal that displays a custom form
This form displays the selections for that order. I have custom Action that allows a user to delete a selection. My question is - how can I trigger the modal to refresh the form with the updated list of selections (i.e.: remove the one that was just deleted)?
I tried using
extraAttributes
and giving each selection a custom class and then using $this->js()
to try and hide the entire row but that didn't work. I'd settle for triggering the modal to close and then re-open.6 replies
File Upload 'Browse' Not Working
Anyone else experience the
Browse
option for a file upload failing? I get no console error messages. No network requests. Nothing. I click it and nothing happens. But I can still drag and drop a file.
I'm using v2.17.52
. This was working previously. I'm not sure what changed.10 replies
Emit Event from Resource to Relation Manager
I have an EditResource page with a relation manager. I want to put a button in
getActions
so that there is an option to create a new relation at the top of the page (instead of being forced to scroll down). I want the action from the resource getActions
to trigger the create
action on the relation manager. Is this possible?5 replies