Q_Loop1
QuestionDescriptionResponseTypeFormatTextHelpPreLogicPostLogic
Q_Loop1_1Question loop form 1 question 1TEXT10

Q_Loop1_1
This is the text for Q_Loop1_1

Q_Loop1_1
This is the help for Q_Loop1_1echo '
QUESTION AND RESPONSE OPTIONS'; if (ShowQueryResultScalar("select count(*) from Responses where CaseID='$CaseId' and qID='Q_Loop1_1'")>0) { echo '

'; echo 'HISTORY: Click to correct information.'; echo '
'; $CaseId=$_SESSION['CaseId']; $vars = array('Q_Loop1_1', 'Q_Loop1_2', 'Q_Loop1_3'); ShowResponsesI($CaseId,$vars,1); echo '
'; echo '
'; }

Q_Loop1_2Question loop form 1 question 2TEXT10 Q_Loop1_2
This is the help for Q_Loop1_2
Q_Loop1_3Question loop form 1 question 3TEXT10
Q_Loop1_3
This is the text for Q_Loop1_3

Q_Loop1_3
This is the help for Q_Loop1_3
Q_Loop1_4Question loop form 1 question 4YesNoRADIO

Any more loops?

if ('$val'==1) { $CaseId=$_SESSION['CaseId']; $ProjectId=$_SESSION['ProjectId']; ExecuteSQL("insert into Responses (CaseID,qID,ProjectId) select $CaseId, 'Q_Loop1_1', $ProjectId"); $rInstance=ShowQueryResultScalar("select max(rUnique) from Responses where qID='Q_Loop1_1' and ProjectId=$ProjectId"); ExecuteSQL("update Responses set rInstance=$rInstance where rUnique=$rInstance"); $_SESSION['Instance']=$rInstance; } $stat=1;
Q_Loop1_5Question loop form 1 question 5TEXT10

Some instruction to the user

Text for Q_Loop1_5

$CaseId=$_SESSION['CaseId']; $prm=ShowQueryResultScalar("select sum(rValue) from Responses where CaseID=$CaseId and qID='Q_Loop1_3' and isDeleted=0");
Q_Loop1_EndQuestion loop form 1 end the loopNULLRADIO