I'm trying to create a LiveCycle form that we can use to record our truckers miles and corresponding pay data. To save some explaining, here's a screenshot with my setup:
I am having trouble with the formula to automatically calculate the Total Miles @ $0.35 from the lines above. Note: the first 4 data lines above are not a table and the data will vary from entry to entry. In this example, I would like the Total Miles @ $0.35 to show 4,000 (because that is what the data above indicates).
Here's the formula that I've come up with from researching the internet:
TotalNumMiles35.rawValue = IF(LineOne.Rate.rawValue eq "0.35") then + LineOne.Units.rawValue + IF(LineTwo.Rate.rawValue eq "0.35") then + LineTwo.Units.rawValue .....and so forth. Adobe does not agree with my formula!!!
I am trying to write this form using the FormCalc method. Basically, what I'm after is: IF the value under Line1 Rate = 0.35, then include the value under Line1 Units to the total in Total Miles @ $0.35, and IF the value under Line2 Rate = 0.35, then also include the value under Line2 Units in the total... If someone could help with the initial formula I should be able to figure out the rest for the different options (Total Miles @ $0.45, Total Labour...etc).
Thanks in advance for any help. My knowledge with LiveCycle/Adobe is almost zero...
Thanks,
Mark