AnsweredAssumed Answered

Conditional default

Question asked by bweller on Feb 7, 2018
Latest reply on Feb 9, 2018 by NDierksQSI

I understand that defaults are set when you open the form and therefore you cannot base the default on the answer to a previous question; however, I am wondering how to approach the following scenario:

 

My form has three parts, the data at the beginning of the road survey, the sightings along the route, and the data at the end of the road survey.  I open the repeat section (sightings along the route) if a sighting has occurred, otherwise skip that section and proceed with the ending section. I want the default number of birds sighted at a given coordinate set to 1 if the question about whether a sighting has occurred along the route is "Yes", otherwise the default is 0 - since it seems there is always one record uploaded in the repeat section, even if no data was entered (sighting occurred along the route is "No") I would like to have this set to zero if NO information was to added to this "record". Putting this "If equation" in the calculation field did not work as the number of sightings at that location could equal more than 1 (just not very often) and the calculation would always set number of birds sighted at that location back to 1.  Thus far I do not see a way to set things up like the way I would like so I am simply making the default set to one and forgetting the conditional statement. Am I correct in assuming this can't be set up to work the way I want?

Outcomes