Create an Advanced Loop in the Builder

Have more questions? Submit a request

Loop Screens allow for more complicated configurations of how captured data is related to itself, i.e. nested Loops or multiple internal screens related to one Key Field.

Loop Screens

For users that are familiar with the Legacy Builder, Loop Screens were previously the only type of repeating screen that allowed users to either capture data in a simple Table layout or in more complicated schemas, referred to as Advanced Loops.

Builder_Advanced Loop Screen_Conditional Screen.png

Since Tables suffice for most use cases, the primary reason to opt for a Loop Screen over a Table is when a complicated repeating layout is needed. 

For more information on specifically creating Tables, visit the Help Center article, "Creating Tables in the Builder."

Use Cases

There are two main use cases for which Advanced Loops comes in handy.

Nested Loop Internal Conditional Screen

Casually referred to as a "Loop within a Loop," a Nested Loop is a set of repeating fields that relate to a secondary Key Field, all related back to the primary Key Field.

An easy to visualize example is a moving company. When quoting a job, a mover would want to know how many rooms are in the house and the amount of furniture in each room. This is technically two Loops where the second is dependent on the first. Without the first Loop, the furniture is not assigned to a room and without the second Loop, the movers won't know how many items are in a room.

As each house is different, a simple Table would provide the flexibility to add as many room as is needed for a specific house but a Nested Loop allows for each room to not only have furniture listed but details about those pieces provided as well. Movers may need to know the dimensions or weight of specific furniture and a Nested Loop is the only clean way to manage this entire example.

Builder_Outline_Advanced Loop_Nested.png

Methods for Creating Loops

There are several methods for creating Loop Screens and Advanced Loops.

From the Center Workspace

Loops Screens can be created by converting a Screen.

  1. In the center workspace, below the current last screen of the form, click Add Screen.
    Builder_Add Screen.png
  2. Click the ellipsis icon in the upper right corner of the screen to expand the menu and select Convert to Loop.
    Builder_Screen_Ellipsis_Convert to Loop.png
  3. If your screen does not already have a field, the modal that pops up will require you to create a Key Field. If your Screen already has a field, the modal will give you an option to create a new Key Field or select an existing field to be the Key Field. Click Done to close the modal.
    Builder_Convert to Loop_Create a Key Field.png
    Builder_Convert to a Loop_Pick an Existing Field.png
  4. Repeat steps 2 and 3 to create a Nested Loop, this time clicking the second ellipsis that is in line with the internal screen to expand the menu and select Convert to Loop.
    Builder_Loop Screen_Ellipsis_Convert to Loop.png
  5. Once all screens are looped as needed, be sure to label each screen clearly. At this point, you can start adding fields to finalize the Loop Screen.
From the Outline

Loop Screens can be created by Looping a Screen from the Outline or dragging additional screens into an existing Loop.

Loop Icon Drag and Drop

Either click Add Screen from the Outline or choose an existing screen. Hover over the screen block in the Outline and a circular arrow icon will appear on the right side labelled "Loop this screen." Click this icon to launch the the Key Screen modals, mentioned above under "From the Center Workspace."

Builder_Outline_Loop this Screen icon.png

To create a nested loop, just click the circular arrow icon in the box for the internal screen. Or use the drag and drop method to add a secondary internal screen. Add fields to the Loop Screen from the center workspace as usual.

Builder_Outline_Loop_Loop internal Screen icon.png
From the Screen Settings

Loop Screens can also be created from an existing Table. The Screen Style setting Labels Above is synonymous with Loop Screens. So changing a Table from Table or Table (pre-populated) to Labels Above will automatically convert the Table to a Loop Screen.

Select the screen from the center workspace or Outline to open Screen Settings in the left panel. Expand the Style menu and select Labels Above.

Builder_Screen Settings_Style Drop Down_Labels Above.png

Mobile users will interact with a Loop Screen slightly differently than a Table. There is an initial screen for the Key Field and each subsequent internal screen or Nested Loop will be it's own screen. All internal screens must be completed before the user can return to the very first Key Field screen to add another line item. Please keep this in mind when deciding to use Advanced Loops because it does take longer to complete a form with an Advanced Loop. 

Additionally, the Test in browser function has a limited functionality for Advanced Loops so Save and Publish the form to test it on mobile.

Please Be Aware

Before implementing Advanced Loops in your form, please note that they are not compatible with the PDF Designer due to their complexity. If you already have a designed PDF, any existing Table converted to an Advanced Loop will no longer work. If you still need the complexity that Advanced Loops offer, either use the Standard PDF or contact our Client Engagement Services team to learn more about Custom PDF.

To learn more about GoCanvas Client Engagement Services, please contact your GoCanvas Account Representative, submit a request to Sales, or submit a ticket to Support.

Did we answer your question?

We'd really appreciate your feedback! Please leave your suggestions for improvement in the comments or let us know what you're looking for so we can assist you better. We want to help, but we need to understand your needs!

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.