I have the text "allowUpdates=true query" in the bind::esri:parameters column for a certain question in my XLS form, as it is my understanding that this is required for a question's value to be retrieved and editable using the inbox functionality with the Survey123 field app.
I also want this question to have the parameter set to "calculationMode = always" so that the question will recalculate whenever the geopoint question is updated (it will populate with coordinate values using pulldata from the geopoint).
I have tried separating these two parameters with commas and semicolons, but it's not behaving the way I would expect. Can someone please help with the correct syntax that is needed to have multiple parameters listed within this cell, and also if I am understanding the "allowUpdates=true query" statement correctly?
Solved! Go to Solution.
Hmmm, I tried using the syntax "query allowUpdates=true calculationMode=always" and it didn't return the coordinate value when I opened the survey in the inbox. (it does retrieve as expected when I only use "query allowUpdates=true".)
For additional context, these Latitude and Longitude fields are pulling values from a geopoint question with a null field type, because I have multiple geopoint questions in my survey. The behavior I'd ultimately like to see is that the fields populate with coordinates when a location is selected on the map in the survey. This point won't be recorded due to the null field type, but the coordinates will. When a user reopens this survey in the inbox if they need to edit something, the coordinates will appear from the original time they selected a location. However, if they click on the map for the null geopoint question and select a new location, I want these coordinates to be updated (hence the calculationMode set to always). I found that without this, these values weren't updating even when a new location was selected in the map.
Now that I think about this more, perhaps the calculationMode being set to always is overwriting the value being returned, since the geopoint itself isn't saved so it thinks it doesn't have any geometry input yet.
Is there a better way to go about doing this? I was honestly surprised that the coordinates didn't update automatically when a new location was entered, since I thought "calculatioMode=auto" was the default mode for calculations in a survey?
@DougBrowning I marked your answer as correct because it pertained to my original question about the syntax. Thanks for the help!
What I ended up doing was just making the coordinate fields visible and instructing the field crew to make sure they hit the "refresh" icon if they update the position in the map when accessing through the inbox. Not ideal for certain reasons (can't be read-only), but it'll work for now.