jamesro
Wizard step afterValidation get only form fields of that step only
Hello,
when i use ->afterValidation(function (array $state) {
}
on a wizard step, it will bring me complete form fields, and that's not good because each wizard step is part of a diferent entity, and those entities have some fields named the same, and I can't rename them unfortunately,
is it possible to get inside the afterValidation only fields of that step?
3 replies
Wizzard multiple entities per each wizzard step
Hello,
I have a case where I need a wizzard with several steps, but I need for each step of the wizzard to edit a different model and corresponding record for that model, any idea if it's possible to achieve that?
7 replies
Custom table query, lost when i'm using custom filters,
For some reason when I use some filters on my table, the query for that filter is loosing the main query of the table, am I doing something wrong or I've understood wrong how filters queries works?
5 replies
horizontal navbar dropdown sub-items in column
Hello,
Is it possible so thant when filmanentPHP horizontal navbar dropdown items to be split in column?
I have a menu item who has many sub-items and it gets too long, was thinking if there's a way to make them go in multiple columns?
3 replies
Custom page with table and filters
Hello,
I'm having an issue with my custom page where I use a table and table filters, for some reason the applied filters does not end up into my url
Here is how I use it:
```php
class Planning extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithPageFilters;
use InteractsWithForms;
public static function table(Table $table): Table
{
return $table
->query(Planning::all())
->filters([
Filter::make('year')
->columns(2)
->form([
Select::make('year')
->label('Select year')
->options(
collect(range(date('Y'), date('Y') - 10))
->mapWithKeys(fn($year) => [$year => $year])
->toArray()
)
->searchable(),
])
}
the filters do get applied, but I don't see the active filters applied in my page url
Any help would be appriciated.
Thanks
5 replies
Relation manager with pivot table doesn't show pivot table field values when edit
Hello,
I have these relation on my User and Cars entities:
User entity:
Car entity:
Unfortunately, both my User entity and user_cars pivot table have these 3 colums on them:
'data_start', 'data_end', 'disabled'
Now when i try to edit an entry from user_cars using my relation manager, those 3 columns values does not get the values from the db, it works if I rename columns to something else in my pivot table:
This is relation manager form:
any how to make it work without having to rename those columns in my pivot table?
2 replies
FileUpload on relation ( HasOne) extra parameters
Hello,
I have a case where the i have a file() relation to another File entity, and that file entity has some extra fields required
Any way i can pass those extra fields values need, when I save my form?
7 replies
How can I hide a field inside a form or repeater, but still send its data
How can I hide a field inside a form or repeater, but still send its data ( i'm populating it's data from another field )
I've tried with hidden() and visible() but it seems its data is not sent when I submit the form
Regards
4 replies
Showing a modal with list of order products
Hello,
I'm trying to show the list of the order products inside a modal using table,
I've created a livewire component where I pass my order it and from there in my livewire component table i set a query to bring me a table with order products,
All good until i change orders page number, in the opened modal for some reason instead of starting from page number 1, it start from page set in my current orders table.
Any idea how i can fix this ?
2 replies