0 votes
in SoSci Survey (dt.) by s210296 (270 points)
closed by SoSci Survey

PHP Code

quotaOKR = [ 1 == 195 ];

quotaIND = [ 1 == 195 ];

$OKR = value('ZS022');
$IND = value('ZS06');

$casesOKR = statistic('count', 'ZS022', $OKRGroup);
$maxPerOKR = $quotaOKR[$OKRGroup];

$casesIND = statistic('count', 'ZS06', $INDGroup);
$maxPerIND = $quotaIND[$INDGroup];

if (($casesOKR >= $maxPerOKR)|| ($casesIND >= $maxPerIND)) {
redirect('https://survey.maximiles.com/quotasfull?p=89490_f1bc75ab&m=%reference%');
};

if ((caseTime('begin') < 420)) {
redirect('https://survey.maximiles.com/complete?p=89490_b096552f&m=%reference%');
}

There is an error in the PHP code:
Questionnaire Error: Command or string (text) unfinished

A command, e.g. question() is missing a semicolon or
a string (text in quotation marks) is unclosed or
the string itself contains an apostrophe, e.g. html('Let's do it!'); – if the latter is the case, please type in a backslash () first.
Perhaps the opening and closing braces for the statement blocks are mismatched.
PHP code

001 namespace s2survey\questionnaire\environment;
002
003 quotaOKR = [ 004 1 => 195 005 ];
006

Können Sie mir helfen was die Ursache für den Error ist?

Vorab herzlichen Dank
Error

closed as a duplicate of: external panel - quota

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

...