Form Self Generating Logic

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.

High Level Procedure
The procedure is as follows:


 * 1) Add all the questions you need to the form.  e.g. 3 questions.  Yes/No question.  Text Answer 1.  Text Answer 2.
 * 2) Go to the Logic Management section
 * 3) The Logic Management section will allow you to enter a correct number of options for the appropriate type.  There is a limit of 20 answers for each closed type.  If more than 20 options, no logic can be added to that type.  e.g. Yes/No type has 2 possible options.  We add the logic of the two options to the question.  The destinations are separated by the semi colon.  So option 1 ; option 2.  To the left of every question is an Id number, it is this Id that is used for the branches.  The input would probably be 3;4 if:
 * 4) Header (Added to all forms by default)
 * 5) Yes / No
 * 6) Text Option 1
 * 7) Text Option 2
 * 8)  With all the logic in place, it needs to be enabled.  At the top of the screen from the Use Self Generating Logic option, choose True.