I have a s123 form (3.16.110) using repeats where users need to type entries into decimal and integer fields, then advance to the next record in the repeat (in our case, the next fish). I notice that in some cases the last field where they enter data, no values are being recorded in the data after the survey is submitted, even when they typed a value in the field in the form. It appears like when the user presses enter or tab to shift focus off of the integer field the data will pass through, but if the user just advances to the next record in the repeat (cursor still in the integer field) the data is not committed. Is there any way to commit the data when the record (repeat) advances? In this case the last "typed" data field is Sample ID.
begin group | measuresample | w5:1 | |||||||||||||
decimal | forklength | Fork Length | w1 | yes | (${forklength} > 0 and ${forklength} <1000) or (${forklength} = -9999) | ||||||||||
decimal | weight | Weight | w1 | yes | (${weight} > 0 and ${weight} <1000) or (${weight} = -9999) | ||||||||||
integer | sampleid_entry | Sample ID (genetics) | w1 | ${species_individual}='COHO SALMON' and ${lifestage_individual}='SMOLT' | |||||||||||
calculate | sample_id | SampleID | if(string-length(${sampleid_entry})=1,concat(${season},"-000",${sampleid_entry}),if(string-length(${sampleid_entry})=2,concat(${season},"-00",${sampleid_entry}),if(string-length(${sampleid_entry})=3,concat(${season},"-0",${sampleid_entry}),concat(${season},"-",${sampleid_entry})))) | ${species_individual}='COHO SALMON' and ${lifestage_individual}='SMOLT' | |||||||||||
note | sample_id_display | Label | w1 | ${sample_id} | ${species_individual}='COHO SALMON' and ${lifestage_individual}='SMOLT' | ||||||||||
select_one release | release_ind | Release | w1 minimal | yes | DOWNSTREAM | ||||||||||
calculate | k_factor | K factor | 100000*${weight}div(${forklength}*${forklength}*${forklength}) | ||||||||||||
calculate | size_warning | <font color="red'>Length to Weight ratio is not within normal parameters. Please check measurements | w5 | "Length to Weight ratio is not within normal" | (${k_factor}>2 or ${k_factor}<.5) and ${species_individual}='COHO SALMON' | ||||||||||
calculate | genetics_warning | <font color="red">Collect genetics clip for tagged Coho | w5 | "Collect genetics clip for tagged Coho" | ${species_individual}='COHO SALMON' and ${pitobsapp}='APPLIED' and ${genetics}='NO' | ||||||||||
end group |
Yes I have seen this before you have to tab or move out of that last field or the data is not saved. Tap anywhere else and it will then keep it. We had to just teach our crews.
@DougBrowning , is this only for Connect published surveys with repeats or web published surveys with repeats as well if you know?
It is the app not how it was published. They do not register until the field loses focus. Test it and see if that is it.