AnsweredAssumed Answered

Populating an answer for an existing survey based on the value entered previously

Question asked by vandervoort on Jun 30, 2020
Latest reply on Aug 4, 2020 by Philip.Wilson-esristaff

I would like populate an answer for an existing survey based on the value entered previously when the survey was opened and edited before.

 

For example I have text box named mytime that uses a function to pre-populate the answer with the string "First Time" when the survey is created the first time.

 

Then, when the survey is opened subsequent times, the following pseudo-function get fired if(${PREVIOUS_VALUE_FOR_mytime} = "First Time", "Another Time" ,${PREVIOUS_VALUE_FOR_mytime})

  • value from first opening gets checked against "First Time" and either changes it to "Another Time" sets the initial value to "First Time"

 

In other words, I need to get values for the survey that are persisted in storage before the existing survey gets opened in Survey123.

  • Can this be done?
  • If yes, how? In particular, how do I "see" those persisted values to do things and make decisions with.

 

TIA

Outcomes