Survey sections now have logical section type, which is never shown to the user, only used for silently checking gotos.
This commit is contained in:
parent
e25094a16e
commit
54063ae9f6
5 changed files with 21 additions and 2 deletions
|
|
@ -882,6 +882,7 @@ sub newSection {
|
|||
questionsPerPage => 5,
|
||||
questionsOnSectionPage => 1,
|
||||
randomizeQuestions => 0,
|
||||
logical => 0,
|
||||
everyPageTitle => 1,
|
||||
everyPageText => 1,
|
||||
terminal => 0,
|
||||
|
|
@ -1222,6 +1223,9 @@ sub validateSurvey{
|
|||
push @messages, "Section $sNum variable name $var is re-used in $count other place(s).";
|
||||
}
|
||||
}
|
||||
if($section->{logical} and @{$self->questions([$s])} > 0){
|
||||
push @messages, "Section $sNum is a logical section with questions. Those questions will never be shown.";
|
||||
}
|
||||
|
||||
#step through each question validating it.
|
||||
my $questions = $self->questions([$s]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue