...
Code Block |
---|
title | randomMeasure.jsp |
---|
borderStyle | solid |
---|
|
<%@include file="include_questionnaire.jsp"%>
<% /** randomMeasure.jsp will randomize measures A, B, and C **/
if (redirectRandomOrderTo("Users", "randomMeasure", new
String[]{"random.jsp", "random1.jsp", "random2.jsp", " })) {
} else {
redirectTo("doneWithSurvey.jsp");
}
%>
<%@include file="survey_end.jsp"%>
|
6. Next download and change the nextPage parameter on your index.jsp file so it points to randomMeasure.jsp. It should look like this:
Code Block |
---|
title | index.jsp |
---|
borderStyle | solid |
---|
|
//index.jsp code example
<%@include file="include_questionnaire.jsp"%>
<%
/**
To use this type of survey, rename this file from "index2.jsp" to "index.jsp". (The default "index.jsp" automatically moves pages around).
Then, you'll be able to control each page, its details, and where it goes next all in the JSP code in here and on "page1.jsp", etc.
d
**/
%>
<survey:surveypage
pageName="Login"
nextPage="randommeasure.jsp"
submitButtonText="Start Survey"
showSubmitButton="true"
percentQuestion="60"
rememberPageUserIsOn="true"
retrieveValuesFromDB="false"
createUsersAtLogin="true"
isLoginPage="true"
/>
%@include file="survey_end.jsp"%
|
7. Now upload all jsp files and test. (Don't forget to click save on the Survey Manager when you are done creating measures!)