Hello,
Working on a form for a customer that involves some simple calculations using values within the same table row. The field that contains the calculation starts acting weird when additional rows are added to the table. You can see this in the attached video where the calculated field goes blank until you click around a little bit. It'll also display an error message if you click into that field sometimes.
The formula I'm using in that Line Total field is =PRODUCT(INDEX(Labor_Charge.Hours,ROW()), INDEX(Labor_Charge.Rate,ROW()))
The Labor Type field is populated via a lookup, and the Rate field is populated via a lookup based on which Labor Type is chosen, if that matters. Forms version is 11.0.2106.10367
Question
Question
Forms - Modern Designer - Calculations across table row
Answer
Hi Jacob, I can reproduce the issue on 11.0.2106.10367 but not on 11.0.2212.30907, so it might be a bug that has been fixed. Would you consider upgrade your environment to latest version?
Replies
Hello, could it have anything to do with the picklist? It seemed like it worked fine with the first labor and cleaning, but when you added another "labor", it wiped out the amounts.
Certainly could be. I don't know what I could change about that list in order to try something different, unfortunately.
Looking at the video again, it doesn't look like it's related to the picklist.
I played around with the following and got it to put the line totals in correctly.
=MULT(INDEX(Table_1.Rate,ROW()),INDEX(Table_1.Hours,ROW()))
I changed my formula to use MULT instead of PRODUCT but I'm still seeing the same thing, unfortunately. It's like even though I'm using INDEX in my formula, the Line Total calculation on existing lines gets erased until the RATE column gets filled in on a new line. Once it's filled in, the calculations remain correct in each line, but I still don't want the calculations to disappear like that.
I don't have a lookup set up or a picklist selection, so definitely not the same setup as what you are trying to do.
My only other thought was if your rate and Line Totals are set to read-only. Or there is a default set that it looks at.