Repeatable Sections: Conditional Logic

About

While conditional logic built in your main form can make changes in your main form based on mobile user inputs, conditional logic can also be built inside of repeatable sections in order to make conditional changes inside of a repeatable section.

For information on building repeatable sections: Building Repeatable Sections.

Where do I build my Conditional Logic?

There are multiple places to build conditional logic in a form; one at the main level of the form, and an area inside of each repeatable section. The effect that you are looking for determines where you build the logic. 

Scenario 1: Conditional Logic sets an entire Repeatable Section to Ignored/Not Ignored

This kind of logic is built at the main level of the form.

Scenario 2: The Conditional Logic affects Repeatable section entries

A) ALL Repeatable section entries are affected in the same way

For example, you have a question in the main form where the mobile user indicates if they are doing an install or a repair. If they choose "Repair", all the questions related to "Install" are made not visible in every Repeatable section entry.

This kind of conditional logic is built inside of the Repeatable section.

B) Each entry behaves differently, based on the answers in it

For example, in each entry in a timesheet you could declare if you worked overtime hours or not. If you worked overtime in that entry, the "Overtime Hours" section needs to show up. It should not show up in any entries where you did not declare overtime. 

This kind of conditional logic is built inside of the Repeatable section.

Create a Conditional Logic Rule in a Repeatable Section

  1. Enter the desired Repeatable section.
  2. Enter the Conditional Logic tab. 
  3. Select Add a Rule in the left navigation.
  4. Configure the conditional logic rule.

Restrictions on Conditional Logic inside of a Repeatable Section

IF Statements

  • The reference question can be...

    • A question that comes before the current repeatable section in the main form (or in a parent repeatable section) 
    • A question that exists within the current repeatable section
    • A footer question that is visible in the current repeatable section

THEN and ELSE Statements

  • The action target can be...
    • A question or section in the current Repeatable section, as long as it appears after everything in the "IF"

Viewing Repeatable Section Conditional Logic from the Web Portal

  1. Navigate to the desired form, and select the Pages and Questions tab.

    Pages and Questions tab on the form portal page

  2. Scroll down to find your Repeatable section.
    Hint: It will have the label "Repeatable" on it.

    Repeatable Section in the web portal

    In the following example, the icon next to Logic Element and the grayed out statements denote an inactive rule.

    An inactive conditional logic rule is denoted by a greyed out logic block with a red X icon next to "Rule active".