== Overview ==
Within any web page, in order to create a logical path through the script, JavaScript is used to show and hide elements. The principle of self generating logic is that elements show and hide depending on options selected in closed questions. The process initially hides all items and then depending on what options are selected, options are displayed again appropriate to the answers selected.
So with a closed question, any number of subsequent questions will be shown or hidden as appropriate. For more information on Open and Closed types click here [[Form_Closed_Vs._Open_Questions]]
So for a Yes/No type, If Yes, show Question 1. If No, show Question 2. This is also called logic branching in other systems and approaches. Question 1 and 2 are referred to in BE as "options".
BE has the ability to generate the JavaScript to create this show/hide effect on the form automatically.
bxp has the ability to generate the JavaScript to create this show/hide effect on the form automatically.
=Worked example = High Level Procedure == First Sample Build ==
The procedure is as follows:
== Notes Multiple Show / Hides ==
For any given branch, you may wish to display more than one question at a time. The comma , is used to separate the questions you wish to display for a given option. Using the example above if we wanted to show a third text option for the No part, then the text would likely be 3;4,5