// Variable to store the recording Audio recording;
// Save recording to a file that includes case id-items to differentiate it from // audio saved in other cases string nameOfAudioFile = maketext("%v%v%vAUDIO_QUESTION.m4a", PROVINCE, DISTRICT, EA);
// If no audio is recorded for this question then the only option is to record, // otherwise allow user to re-record, play or clear recording before continuing ValueSet vs; iffileexist(nameOfAudioFile) and recording.load(nameOfAudioFile) then vs.add("Re-record", 1); vs.add("Play recording", 2); vs.add("Clear recording", 3); vs.add("Next question", 4); else vs.add("Record", 1); endif;