The function stopPage()
must not be used in the "PHP for Processing Responses". This command only stops creation of the current page, and therefore does not make sense in processing. What youre looking for is
repeatPage()`.
To use repeatPage()
properly, please create a "New Text" in one of your sections, and write the "Drug..." text there. If you would likle to use placeholders, please use valid placeholders.
Let's say, your text hat the ID TX01, then your code would look like this:
if (value('E04_01') <= value('E04_02')) {
replace('%placeholder1%', 'E04_01', 'response');
replace('%placeholder2%', 'E04_02', 'response');
repeatPage('TX01');
}
Important: Make sure that the variable IDs E04_01/E04_02 are correct, they may be, but are probably not.
And, please keep in mind, that answers from AI tools are right oly in 64% of the cases - on average. And they're much worse regarding SoSci Survey. Approximately 10%.