Form Self Generating Logic

From All n One's bxp software Wixi

Revision as of 01:00, 30 October 2013 by Philip Lacey (talk | contribs) (Created page with "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 elemen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


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.


BE has the ability to generate the JavaScript to create this show/hide effect on the form automatically.


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.


  1. Go to the Logic Management section


  1. 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:
  • 2. Yes / No
  • 3. Text Option 1
  • 4. Text Option 2


  1. 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.


Notes: