SKNtheKing
SKNtheKing
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
emptyStateHeading and emptyStateDescription not working in RelationManager tables
I am so sorry, I had two projects open at the same time and had been working for like 10 hours straight and didn't even notice i was changing the code in the wrong window of my IDE, now that I picked this up fresh i realized the class i was supposed to be working on didnt have those lines of code, and checked back and the other project's class had it, im dumb, im sorry for wasting your time 😂
7 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
nextAction on Wizard built with getState Function
thank you, you gave me the idea and i just change the code on the wizard, as i just need it in one language, i changes in the root, thanks!
5 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
emptyStateHeading and emptyStateDescription not working in RelationManager tables
No description
7 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
Hiding Create form buttons untill the last step of a Wizard
thank you, and my bad, sorry!
13 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
Hiding Create form buttons untill the last step of a Wizard
@Leandro Ferreira im sorry to bother again, but is there any way i can change the next button text to "seguinte" on the wizard when implementing it with the getSteps method? I ve looked into the docs but found nothing
13 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
Hiding Create form buttons untill the last step of a Wizard
Basically, if you need to hide the form buttons, you can use the HasWizard trait (https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard props @Leandro Ferreira) and then create the getSteps function in your record handler class (Create/EditPage). This function returns the steps your wizard has to the form and uses the handleRecordCreation/Update method, if you have overriden it, it uses your logic, or else it uses the default, to display a button on the last step of the wizard to create or save the changes you made to the record. In the end, you don't need to do anything to hide the buttons, as i thought, you just need to let filament handle the form for you with the getSteps function!
13 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
Hiding Create form buttons untill the last step of a Wizard
Well thats so much easier, i was handling all the data with If clauses to check if it was even there when saving, it just saves so many lines of code. I thought of using the steps function but i would never have noticed I was missing that trait, thank you so much! I marked your answer as solution but im going to write a small text explaining the whole process and mark that so its easier to understand when searching!
13 replies
FFilament
Created by SKNtheKing on 9/23/2024 in #❓┊help
Hiding Create form buttons untill the last step of a Wizard
I am defining the wizard on the form function on the main resource, with that trait how can i check how many steps it has? or do i have to create the getSteps function on the createresouce class?
13 replies
FFilament
Created by SKNtheKing on 9/21/2024 in #❓┊help
ImageColumn shows an ? with 404 not found error on console
Well i solved it, it was not finding the image as the APP_URL on my .env was localhost and on the browser it was on 127.0.0.1 and i simply thought localhost was some placeholder for the ip
4 replies