Hi,
I'm using survey123 and trying to add field with a calculation to calculate cost per km based on fuel. When I enter the syntax as in the first screenshot both variables are there but as soon I return to the main screen the "KM driven" field disappears. Can someone help?
I am experiencing the exact same issue, and even when I finally get the correct fields into my calculation, the calculation is not returning values in the survey. Is this a known issue, Esri?
I was able to (finally) get the right fields to stick into the calculation window by loading the calculation with extra fields, which ended up getting dropped by the error, but when I do this the calculation fails.
Yeah I tried then putting everything in brackets just to get the field to remain but even then they don't always stay or like you said then don't perform the calculation
So, and this is going to sound crazy, but we think we found a work around. If we put the calculation is as we want it, and set it then save and publish it seems to still work even though it doesn't show up in the visualization.
But I had to use the trash can icon to clear the form first, then put it in as it should be and saved it. Even though it didn't show up in the right hand side of the survey it still seemed to work.
Let me try and come back to you