Dear all,
I cant understand why exactly I have a problem with my filter and I get the following warning
"The variable AV01 has not been asked on a previous page during this interview. Therefore value() cannot determine any answer, yet."
Variable AV01 is a Random generator variable, where
1 = Primed
2 = Not primed
It is asked only if conditional answering a specific thing (see below)
if (value('A019') == 1){
$returnee = true;
question('A022');
show('AV01'); // Random treatment assignment
} else {
goToPage('int1');
}
I use it to randomize the order of a certain block of questions, see below
Then I have 3 pages that have a similar code to what I have below (just different questions)
if (value('AV01') == 1) {
question('EP01');
question('EP02');
question('EP03');
} else {
goToPage('int1');
}
And at the end of the questionnaire, similarly I have this, so one randomly assigned group
if (value('AV01') == 2) {
question('EN01');
question('EN02');
question('EN03');
} else {
goToPage('end');
}
I don't have any error until the last page and everything seems to work as I intended except the warning... I can see indeed that the problem is related to the fact that the value AV01 is not defined unless if (value('A019') == 1), but I do not know how I could overcome it...
Thank you very much for your attention