1. Helpcenter
  2. Form Builder
  3. How to give your form depth

Manage dependencies through subforms

Using subforms in Incontrol allows directing the user while filling out the form. Based on a selected answer, a follow-up question is generated. For example, if the question is whether a component is okay or not, a photo or comment may be requested when a negative answer is given.

Explanation

It's possible to set up a subform with the following choice elements:

Additionally, it's also possible to set up subforms with the following numeric elements:

Setting up a subform for choice elements

Subforms can be added to an element in two ways. You can add the subforms while editing the element itself, or by clicking on the plus sign at the bottom of the element in the full overview of the form builder.

Adding a subform from the element itself

  1. Open the Form Builder.
  2. Add one of the above choice elements to your form.
  3. Edit the element and add some options for the end user to select.
  4. For a choice option, you can add a subform as indicated in the image below:
    Subformulieren_Menu_EN
  5. You will now see two or more options:
    1. "Don't show subform for this answer"
    2. "Add a new subform for this answer"
    3. If you've already created subforms, you'll also see them.
  6. Select the second option to add a new subform.
  7. A new window will open.
    Subformulier_Naam_EN
  8. For choice elements, you will always see the choice option to give a name to your subform. Enter a name for the subform here, so you can easily find it later.
  9. Click 'Add' when you're done.
  10. You'll now see that the subform has been created and linked to your choice option.
  11. You can also link the subform to other choice options if you wish.

Adding a subform from the Form Builder

You can also easily add a subform from the Form Builder. This is also the screen where you can delete a subform.

  1. Open the Form Builder.
  2. Add one of the above elements to your form.
  3. From the Form Builder, you can press the plus button next to the element where you want to add a subform.
    Subformulier_Leeg_Formbuilder_EN
  4. When you press this, you'll see the same pop-up as in the steps above.
  5. Enter the name of the subform here and press 'Confirm'.
  6. The element will open, allowing you to directly link the subform to the various choice options.
  7. Press 'Save' when you're done editing
  8. If everything went well, you should now see a similar screen in the Form Builder.
    Subformulier_Formbuilder_EN
  9. If you've created multiple subforms, they will be displayed as separate tabs.
  10. Under the tab, you can add rows. Everything placed in the tab will be shown when the subform is called.

Setting up a subform for numeric elements

Adding subforms for numeric elements works the same way as for choice elements. In this section, we'll only highlight the differences.

Adding a subform

  1. Open the Form Builder.
  2. Add a numeric element to your form.
  3. You can use subforms with any input method of a numeric element.
    1. User input
    2. Read-only number
    3. Calculation
  4. For a calculation element, you only have a "Read-only" value.
  5. Now you can add a subform in two ways:
    Subformulier_Aanvullende_Informatie_EN 
    1. Via the "+ Value" button
    2. Via the "Import" button
  6. "+ Value" button
    1. Click on the "+ Value" button.
    2. Enter the 'comparison' with which you want to show the subform. You can choose from:
      1. less than
      2. less than or equal to
      3. equal to
      4. not equal to
      5. greater than or equal to
      6. greater than
    3. Select one of the above and enter the 'value'.
    4. Add a subform as you learned in earlier steps in this article.
  7. Import
    1. Click on the "Import" button.
    2. You can now specify different comparisons, but also specify complex comparisons.
    3. For example, you'll always see "x = 0"
      Subformulier_Condities_EN
    4. Here you can enter the comparisons. Note: if you have multiple comparisons, separate them with an enter.
    5. You can use the following components here:
      1. <, for less than
      2. <,= for less than or equal to
      3. = for equal to
      4. != for not equal to
      5. >,= for greater than or equal to
      6. >, for greater than
      7. OR for OR statements (show subform if x is equal to 3 or equal to 5)
      8. AND for AND statements (show subform if x is greater than 0 and less than 4)
      9. You can use aliases from other elements (show subforms if x is equal to @alias)
    6. For example, you can have the following comparisons:
      Subformulier_Condities_Voorbeeld_EN
    7. Press the "Import" button when you're done.
      Subformulieren_Menu_Condities_EN
    8. Now add the subforms you want to link to the comparison.