Hello,
As the Survey123 team has previously suggested, I have been successfully using a sample ID based upon a calculated date and relevant field for a long time. However it is no longer working. When I select 'yes' the specimen label box that opens is empty. This is a major problem for us. Can you explain what is happening and provide a fix?
select_one yes_no | specimen_collected | Specimen collected? | horizontal | no | |||||||||||||||||||||||||||
text | calc_sample_id | Specimen label | Write this fun number on the specimen bag | ${specimen_collected} = 'yes' | concat(format-date(now(), '%y-%m-%d %H:%M:%S'),'_',property('username'),'_GS') |
Thanks,
Lori
PS I also attached the XLSX
A fix for this problem would be very helpful
Hello?? Anybody have a suggestion on how to fix this??
Hi Loretta,
The issue is that the calculation is in a question that has a relevant expression. In 2.7, the behavior of relevant was changed to empty out the question to prevent submission (as non-relevant answers are not being asked). One way to address this would be to have the default for question #36 be yes (especially if specimen collection is the normal part of the workflow); alternatively, clicking on the label question and then pressing the refresh icon that will appear next to it will generate the label.