Default value

80
2
12-11-2018 10:21 AM
Highlighted
New Contributor II

I am evaluating that when the question is not answered a predetermined value is entered, the option default is the only option, ?  the field already appears filled


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
Reply
0 Kudos
2 Replies
Highlighted
Esri Esteemed Contributor

Hi,

Default values are used to pre-populate a value, which can then be changed later.  Is there an impact to the collection procedure if that is done compared to what you describe (if a question is blank on submittal, then provide a default value)?  It is possible to simulate that workflow by having 2 fields:

1) The field for manual entry.  This, however, would not be the field that submits data and would have a value of null in the bind:esri:fieldType column.  For reference below, call this q1.

2) A hidden field to store the value.  This would use the coalesce() function to provide a default value only if q1 is empty.  The function for this is coalesce(${q1}, <DEFAULT_VALUE>).

Highlighted
New Contributor II

Hi  James Tedrick  happens is that some questions in the survey should not be left blank, but rather with the value '0' when no data or numerical value is entered in some questions ( areas) so that it does not affect the calculation of the statistics after the data collection.

Thanks.

Reply
0 Kudos