Difference between revisions of "Page Logic - Web Forms"

From SmartWiki
Jump to: navigation, search
 
Line 1: Line 1:
Page logic section is used to specify visibility condition for the page. This may include conditions based on responses to previous questions.  
+
Page logic section is used to specify visibility condition for the page. Visibility conditions are based on responses to previous questions.  
  
 
'''Example,'''
 
'''Example,'''
  
We create three pages where the question asked on Page 1 can have one of two responses 'Yes' or 'No'. <br/>
+
We create three pages with one question per page. <br/>
 
[[Image:WebForm1.png]]
 
[[Image:WebForm1.png]]
Page 1 has variable name Papers.<br/>
+
 
Page 2 will appear if Papers is 'Yes' and Page 3 will appear if Papers is 'No'.
+
Page 1 has variable name Papers and the question asked may have one of two responses 'Yes' or 'No'.<br/>
 +
 
 +
[[Image:WebForm2.png]]
 +
 
 +
Page 2 will appear if value stored in the variable(or response to question on Page 1)Papers is 'Yes'. The condition is specified as follows:
 +
 
  
 
[[Image:Pagelogic1.png]]
 
[[Image:Pagelogic1.png]]
 +
 +
Page 3 will appear if value stored in the variable(or response to question on Page 1)Papers is 'No'. The condition is specified as follows:
 +
 +
 +
[[Image:WebForm3.png]]

Revision as of 12:39, 31 March 2009

Page logic section is used to specify visibility condition for the page. Visibility conditions are based on responses to previous questions.

Example,

We create three pages with one question per page.
WebForm1.png

Page 1 has variable name Papers and the question asked may have one of two responses 'Yes' or 'No'.

WebForm2.png

Page 2 will appear if value stored in the variable(or response to question on Page 1)Papers is 'Yes'. The condition is specified as follows:


Pagelogic1.png

Page 3 will appear if value stored in the variable(or response to question on Page 1)Papers is 'No'. The condition is specified as follows:


WebForm3.png