Filament: Repeater 'Live' Form Changes with afterStateUpdated()

preview_player
Показать описание
Example of Invoice items and calculating the total, with Repeater field and a custom function.

Рекомендации по теме
Комментарии
Автор

I always thought filament was to complicated but your videos got me curious. After spending some time with it, i can clearly see the benefits. I even converted some of our existing projects over to filament and it has been great! Thanks for the videos, they thought me a lot!

rick_zim
Автор

Excellent answer friend, you have saved my day.🙂

yordanismartinez
Автор

Hey, I’ve a scenario related this example.

while creating sales, I track the total sale price and cost price for selected items. However, I have hidden the Total Cost Price field for certain reasons, and now it's not saving in the database.

I understand that hidden fields aren't saved in the database. Typically, one would override the `mutateFormDataBeforeCreate` or `afterCreate` function to address this. However, in my case, I can only get the value during item selection.

Any suggestions for a workaround?

bunjabarra
Автор

hi. i tried to make dynamic repeater based on dropdown. inside the repeater, have 2 select dropdown and their option is depend on the choosen parent dropdown. i want to make the repeater default set to value of the selected parent but turns out it become empty. any ideas?

Eg:

Section 1:
- select 1
- select 2
- select 3

Section 2:
- repeater (based on select 1, 2, 3)

Repeater:
- select_repeater 1
- select_repeater 2

muhammadnorafif
Автор

hello how filament store multi-language to translation table?

mohamedALI-enic
Автор

i tried it but the live page didn't change

markericsonbrioso
Автор

Is there a way to update a field in another table from the create form of a resource?

For example you have a resource MaterialDeliveryResource which creates records of new deliveries of a Material. Each delivery has a quantity and you want to update the total quantity of that material in a seperate model called Material which is of course related to the MaterialDelivery model? I managed to do that with an Action but I have to manually click it to add up the new delivery quantity to the other model. Can I make it an automatic calculation every time a new Delivery is created?

antontenev
Автор

Hello Master. I think I saw a video here a few days ago, where you change the requiresConfirmation for the user to enter some data to confirm a data deletion. Could you tell me what this video is?

galegobr
Автор

Sir, does the filament v3 email verifaction works?

dalumpines.stanley