trymedo
Is it possible to have a required (non-nullable) Select Form Component?
I should add, despite having a "default" value set on this too, when you clear out the default value with the
x
it then sets it to null. This is on a filters form - I've not tried this somewhere else in the UI yet to see if it's only this area that's affected but I would presume it to be consistent across all Select inputs5 replies
Table Widget - extremePaginationLinks and queryStringIdentifier not working
I've tested the
queryStringIdentifier
on another page and it works fine. It feels both of these issues (query string and normal pagination) is only an issue for Widgets. I can work around this for now but does anyone know if there's a plan to get custom pagination queries on widgets in future? I would happily work on a PR for it myself but I'm still fairly new to Filament and don't really know where to begin.5 replies
Call Table Actions without making full requests?
Can anyone help me understand why this happens or more importantly; Is there anything we can do to avoid it?
I guess this is because each page is a full-page component but are there any other solutions that might help with this sort of thing?
It just seems a bit overkill that even a simple action such as showing a help-text modal would run all the main page requests again.
2 replies
installing into existing project
I can't find any information regarding this online, in the docs or in this Discord channel. We've started trying to add Filament in the hope of migrating one piece at a time. Starting with the login and profile pages but I would love some Filament experts to discuss this with to try and scope out any potential issues with doing things this way.
4 replies
How do I show the data from the description of another table and not a number?
On a side note; Doing it this way means that if the stock descripcion gets updated, the assignacion descipcion won't match it anymore and they're going to be out of sync. If you want them to always match then you're better off not storing the descripcion in that table at all and instead always fetching the
$assignacion->stock->descripcion
instead.
Of course, I don't know what your specific use-case is, so there's probably a reason you're copying the data over in this way.
Either way, I'm happy you've got it working 😀33 replies
How do I show the data from the description of another table and not a number?
Well Filament is very well documented but sometimes you need to have some kind of clue as to what you're looking for. I had recently used the afterSave hook, so I just kind of guessed that there would also be a beforeSave or something and eventually found this:
https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-saving
33 replies
How do I show the data from the description of another table and not a number?
Is it adding the id of the descripcion in that column, but you want to add the descripcion value or something? I don't know what the Descripcion model looks like, but you can use dot syntax too so maybe something like
descripcion.name
instead?
Sorry, I'm not sure I fully understand what you're trying to achieve.33 replies
How do I show the data from the description of another table and not a number?
Ah I just re-read the title of the post... if you have a
Descripcion
model, then your table will need a descripcion_id
.
Then your Asignacion
model will need to have the relationship setup correctly like so
33 replies
Remove value when form field is hidden
I might not be understanding the issue correctly but could you just use the disabled() option and pass in the same arguments as your hidden?
That way, when it's hidden, it's also disabled and values won't be passed with the request 🙂
27 replies
I got the expiration error for Filament Form and could not figure out
Without further information it's hard to debug this, but my first question would be, have you created the table and run the migrations to allow the sessions to be stored in the database?
I've never used db sessions personally but I believe this helper command will create the migration for you (then you just need to run the migration of course) - try this:
12 replies
"Live" Relationship Manager?
OK so I've found the
$table->poll('1s')
method which works great - but if anyone can point me at a way to trigger a manual update upon saving the main Model, that would be more efficient as I don't need it to be querying the database regularly, but I would need to update my Relation Manager when saving the query
property on my model6 replies