0 votes
ago in SoSci Survey (English) by s356083 (130 points)
edited ago by SoSci Survey

Step 5 for setting up to display the completion code says
On the second of the two new pages (i.e., the second to last page), add the following in a php code window (i.e., dragged from the right side to the center/page)

$completion_code = value('VA02_01');
html('<h1>BESAMPLE COMPLETION CODE: '.$completion_code.'</h1>');

But when I add it in the php code window, it says "Warning: The function html() is not suitable or allowed in the PHP for Processing Responses."

What do I do?
I realised setting up and generating codes in SoSci survey is really inconvenient.
Kindly help

1 Answer

0 votes
ago by SoSci Survey (364k points)

Please make sure to trag an element "PHP Code" from the right into the questionnaire.

The error message tells that you're currently using the "process answers via PHP" input on the bottom of the page.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...