Difference between revisions of "Page Logic - Web Forms"
From SmartWiki
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Page logic section is used to specify visibility condition for | + | Page logic section is used to specify visibility condition for a page. Visibility conditions are based on responses to questions asked in earlier pages. |
'''Example,''' | '''Example,''' | ||
− | We create three pages | + | <strong>We create three pages with one question per page. <br/></strong> |
[[Image:WebForm1.png]] | [[Image:WebForm1.png]] | ||
− | Page 1 has variable name Papers.<br/> | + | |
− | Page 2 will appear if Papers is 'Yes' | + | <strong>Page 1 has variable name Papers and the question asked may have one of two responses 'Yes' or 'No'.<br/></strong> |
+ | |||
+ | [[Image:WebForm2.png]] | ||
+ | |||
+ | <strong>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:</strong> | ||
+ | |||
[[Image:Pagelogic1.png]] | [[Image:Pagelogic1.png]] | ||
+ | |||
+ | <strong>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:</strong> | ||
+ | |||
+ | |||
+ | [[Image:WebForm3.png]] | ||
+ | |||
+ | [[Category:Web Forms]] |
Latest revision as of 12:55, 31 March 2009
Page logic section is used to specify visibility condition for a page. Visibility conditions are based on responses to questions asked in earlier pages.
Example,
We create three pages with one question per page.
Page 1 has variable name Papers and the question asked may have one of two responses 'Yes' or 'No'.
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:
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: