I have a requirement where on a form where I select n:m attributes and i have to populate the sum of the values selected into a form field before the form is save/submitted.
I have the following relations and relevant attributes
1) Facilites
-> id
-> name
-> rent
2) Bookings
-> id
-> rent (calulated - sum of selected facility rents)
3) Booked_Faclities
-> booking_id
-> facility_id

Is this possible? if so how?
Thanks in advance.
Cheers
Francis