F
Filament10mo ago
Sdeev

Input default callback not working

Why does the callback function successfully calculate the total value when used with the placeholder() method, but not with the default()
No description
5 Replies
LeandroFerreira
LeandroFerreira10mo ago
are you using the panel builder? What isn't working?
Tieme
Tieme10mo ago
Because default is only when you are creating a record not editing a record. You can use ->formatstateusing()
Sdeev
SdeevOP10mo ago
im using the table builder its a Repeater with a relationship orderproducts and for each row iwant to display a total = quantity * unite_price and save the total in the database (i get the total using placeholder but idont know how to make the total as the textinput default value ) @Tieme @Leandro Ferreira
Sdeev
SdeevOP10mo ago
i set the total when the quantity and the unite_price chnages it works fine but i dont know if this the best practice
No description
Want results from more Discord servers?
Add your server