AnsweredAssumed Answered

Default to next value in a choice list between repeats

Question asked by B018740N on Dec 20, 2018
Latest reply on Dec 23, 2018 by Philip.Wilson-esristaff

I currently have a survey where users are collecting measurements along a linear asset, and must do so at predefined 200 foot increments.  They are currently identifying this increment within a select one question that contains scaled numeric values along with some non-numeric choices like "Start of Project".  Example Values below:



Individual measurements are collected within a repeat, below some project header information.  The functionality that I really need, is to present a user with a default value that is based upon the last measurement collected.  Example: If the last collected measurement was 200, then the next iteration within the repeat would default to the next option within the pick list (400).



I've attempted to accomplish this by converting all the values within the pick list to a number using the pulldata function and a media table, and then calculating a MAX field within the header that I could key off of.  I've been successful getting this combination of fields to provide the suggested value, however am receiving the following error when I attempt to use it in the calculation for the field I hoped to pre-populate.


>> Something Broke the parser. See above for hint.

Dependency cycles amongst the xpath expressions in relevant/calculate


Results: Invalid


I believe that I've created an infinite loop here, but don't see an available alternative.  Does Survey123 otherwise support suggesting/defaulting to the next value in a choice list within a repeat?