I have created a form that has multiple subforms each with a Sub Total field and I want the main form's Total field to be the sum of the Sub Total fiels from all of the contained subforms. Can someone please offer me some script that can do this and a little assistance on where to enter the script please? (Would I enter it into the main form definition?)
I currently have the Sub Total fields in the subforms displayed as USD and would like the Total field to be in USD as well.
If it is possible for me to create a function from this script I'd love to do that so I can use it in my other forms.
I would guess it would look something like this below, but I'm not familiar with the format to enter the scriptForm.Total == Subform1.Sub_Total + Subform2.Sub_Total + Subform3.Sub_Total
I downloaded the sample app Order Management, but the formula it has is complicated to me and I just need something to do simple addition and show the total. Also, that app only has one subform, so it doesn't show how to add together sub totals from multiple forms. I tried editing the script, but had no luck since I didn't know how to add in the additional subform and I needed to delete portions so it's really more script than I need.
Thank you very much for your time!Lindap.s. I thought I posed this earlier so I apologize if it's a duplicate I never saw the original post so I thought it may not have submitted.
Read More
I currently have the Sub Total fields in the subforms displayed as USD and would like the Total field to be in USD as well.
If it is possible for me to create a function from this script I'd love to do that so I can use it in my other forms.
I would guess it would look something like this below, but I'm not familiar with the format to enter the scriptForm.Total == Subform1.Sub_Total + Subform2.Sub_Total + Subform3.Sub_Total
I downloaded the sample app Order Management, but the formula it has is complicated to me and I just need something to do simple addition and show the total. Also, that app only has one subform, so it doesn't show how to add together sub totals from multiple forms. I tried editing the script, but had no luck since I didn't know how to add in the additional subform and I needed to delete portions so it's really more script than I need.
Thank you very much for your time!Lindap.s. I thought I posed this earlier so I apologize if it's a duplicate I never saw the original post so I thought it may not have submitted.
Read More