We have a table with an amount column and an additional shipping cost field, separate from the table, that get added together in a "Total" field using the =SUM() calculation rule. When you enter a shipping cost, then delete the value, the Total does not update and if the form is submitted, it will produce an error. This appears to happen in both the Classic and Modern forms designer. This seems to be a bug since it has worked in on-prem by disregarding the field if it was empty.
Discussion
Discussion
=SUM() Not Working as Expected in LF Cloud - Possible Bug
This has surely been an issue for us as well, I have been using JS to do calcs for tables otherwise users could not delete rows and have accurate data.
The bug number for this issue was bug 496600 and it was supposed to be fixed in the release on Jan 12th
https://doc.laserfiche.com/laserfiche.documentation/en-us/Default.htm#changelog.htm
If it is still happening with some functions, then I would send an example form to support.
Hmm I am unable to reproduce this, you are summing outside of the table right? Are both fields used in the calculation number or currency fields? Also I know you mentioned it not working in either, which is the intended designer?
All fields for the calculation are currency fields, and we are summing outside of the table. We are intending to use the modern designer.
For the screenshot below, I entered $123 in the table and $3 in the Extra field. That totaled to $126. Then deleting the Extra value of $3 does not update the total.
=SUM(Table.Currency,Extra) calculation on the Total field.
With some additional testing, if the Total field is not read-only it works as expected. However, we need the Total field to be read-only in our process.
What if you use a field rule to disable the "Total" field instead of making it read-only?
That seems to work. Going forward, is it best practice to use field rules over properties for fields, particularly when using the modern designer?