Survey with multiple calculate fields in the form of coalesce(${no_algae_1},0) + coalesce(${film_1},0) + coalesce(${sludge_1},0) + coalesce(${cyanobacteria_1},0) + coalesce(${didymo_1},0)+ coalesce(${other_mats_1},0) + coalesce(${green_filaments_1},0) + coalesce(${other_filaments_1},0) +coalesce( ${other_1},0).
All works ok until the form is saved as draft and then re opened. The calculate fields then no longer update/calculate as changes are made to the associated fields.
I have a work around in that on my form I am able to hide and then redisplay all the fields. When re displayed all the fields have been emptied. As I then fill them in again the calculate field does work.
All fields are integers.
Seen on version 3.14.255, but also then demonstrated on 3.14.242.
Solved! Go to Solution.
Have you tried setting the calculation mode to always?
The calculationMode parameter entered in the bind::esri:parameters column controls when calculations in questions are calculated, for example, calculationMode=manual. There are three supported values:
Have you tried setting the calculation mode to always?
The calculationMode parameter entered in the bind::esri:parameters column controls when calculations in questions are calculated, for example, calculationMode=manual. There are three supported values:
This did fix the issue.
But I find the behaviour inconsistent from the documentation:
# Integer values continue calculating until we save to draft and re open
# Decimal values continue calculating whether in original form or a re opened draft.
But date and time only calculate once which is very good - definitely what we need.
I applied the fix to integer and decimal calculations just in case anther application update modifies the behaviour to remove the inconsistencies.