pocket.racer
How to trigger form wizard next step via javascript?
On step 3 of my form wizard. I have a facial recognition component. What I plan to do is once the user face is verified. I trigger next step of the form wizard via javascript on the onSuccess() hook of the facial verification sdk. But I'm not quite sure how to trigger filament form wizard next step via javascript.
So hope anyone here knows. Thank you
3 replies
How to stop going back on Form Wizard once a certain step is reached?
Say once I reached step 3 on a form wizard. I want the back button to disappear on Step 3
The user can still go to step 4 and go back to step 3. But step 2 and step 1 should be impossible once step 3 is reached.
Any idea how to achieve this?
2 replies
Is there a way to get current step number in Form Wizard?
I have the following piece of code
I want to make it such that I can do something like this (Continue button to be full width if it is the 1st step)
I tried to inject Component $livewire to the ->nextAction() method but it I got error as it is injecting the parent livewire component, not the form wizard livewire component
14 replies
How do you make the submit button of a form wizard do a require confirmation dialog?
Currently in the docs, to add a submit button, I have to do this:
But it seem like there is no way for me to add a ->requiresConfirmation to the submit button to give some warning before they confirm again to submit
5 replies
CreateAction not showing in relation manager table header action in view page
So i have this Relation Manager with the following code
On edit page i can see this table header action on the relation manager, but on view page the action is not visible. I tried to attach a ->visible(true) at the end of it and it still doesn't help too
6 replies
How to change the resulting json for Checkbox List?
Currently I'm trying to use the checkbox list field
https://filamentphp.com/docs/3.x/forms/fields/checkbox-list
However it save the resulting json as something like this, notice item-2 is not inside the array as it is not checked
But i want it to save as this kind of json instead
How should I do it? for both saving and correct retrieval. Thank you
3 replies
How do i make default page register instead of login?
when i go to my domain.com it always redirect to /login
How do i make it go to /register?
Currently i have to go to routes/web.php and add Route::redirect('/', 'register') but i wonder if there is a better way I can specify in Filament generated AdminPanelProvider instead
3 replies
How to do a ranking column in filament table that doesn't change?
So i want to build a ranking table with filament, where by the left most column will be called 'rank'
it should go from 1 to (number of records)
Then as i press the sort indicator on the other columns, it get sorted, but ranking number on the left side don't change
Any idea how could I do it?
So example:
Rank | name | Push Ups | Sit Ups | Squats
1, Dan, 8, 6, 4
2, Harry, 7, 7, 5
So if i sort by push ups, Dan will be 1st, Harry will be 2nd
if i sort by sit ups, Harry will be 1st, Dan will be 2nd
Hope i am not too confusing. Thank you
6 replies
Is it possible to use filament table in filament form now?
I saw this merged PR, but I could not find any information in the documentation on how to use it yet
https://github.com/filamentphp/filament/pull/13101
4 replies
Code in resources/bootstrap.js not running
So i have the following code in my resources/bootstrap.js but my sentry user feedback widget didn't show up on Filament pages, but it shows up on non filament pages. If anyone know what i missed out on let me know
2 replies
How to resolve php artisan filament:cache-components error?
I added this command to my production deployment script as recommended. But I keep get this error during deployment
crc32(): Passing null to parameter #1 ($string) of type string is deprecated in /home/forge/my-site.com/releases/20240612042953/vendor/livewire/livewire/src/Features/SupportScriptsAndAssets/SupportScriptsAndAssets.php on line 31
When I check that class in livewire package. it is this line
It seem that calling
->getPath()
on app('blade.compiler')
always return null
What can I do so that app('blade.compiler')->getPath()
will return a string?2 replies
How to add render hook to modal & slideover?
Hi, I am trying to add something to modal & slideover render hook in filament tables & table widget. But when I look at the documentation I don't know which is the right one
https://filamentphp.com/docs/3.x/support/render-hooks
Hope someone could help. Thank you
2 replies
Viewing table record details in a table modal show another record details? (Security)
Have this really weird bug that happen only in production
My filament v3 table has many rows and for a particular user, when he press the 'View Details' action on the table row, it shows another record details (sometimes)
This seem to only happen for that particular user and we have been unable to reproduce it anywhere & that is worryingly as it's a potential security risk (or maybe not since it's still a record the person is allowed to see i think, just that the it's a different record displayed). Hence wanted to ask if anybody else faced a similar issue too and if u all manage to find out what might be the reasons
Part of us wonder if it is a diffing bug or something else
4 replies