pritam
pritam
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
thank you for helping. I will see if he gets convinced
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
okay, i even don't know why he wants it this way
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
@ericmp
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
So I want using javascript for that purpose
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
I did it with live() and afterUpdate function but he said to use client side code
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
My boss wants to use client side code to calculate the total
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
I will follow the docs
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
okay thank you
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
I am updating totalContributionField
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
function calculateTotal(){ let total = 0; let inputFields = document.querySelectorAll('.filament-table-repeater-tbody-cell .fi-fo-field-wrp .fi-input'); inputFields.forEach(element => {
if(element.value != ""){ total += parseFloat(element.value); } }) const totalContributionField = document.querySelector('input[id="data.total_amount"]'); totalContributionField.value = total; }
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
sure
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
do we have any other way by which we can update the field value ?
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
vanilla js
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
maybe it will work
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
to set a value we have set method in filament I think we need to replicate the same method with javascript
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
tried but not working
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
On entering field manually I am able to store the value in the database but with javascript when i update the input field it is not getting updated
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
On entering field manually I am able to store the value in the database but with javascript when i update the input field it is not getting updated
42 replies
FFilament
Created by pritam on 4/26/2024 in #❓┊help
Filament
yeah sure
42 replies