This lesson will cover the following topics:

02 | The Setup
04 | Preview

01 Getting Started

This tutorial covers how to work with repeat data in Forms 2.0, including:

  • Repeat strips
  • Repeat columns
  • Repeat containers

02 The Setup

In the first strip, an account look-up field was configured and a button was added. When the button is clicked, a Salesforce Get action runs to retrieve all the contacts associated with that account.

In the second strip, a form was inserted with first name and last name text input fields. This form will be used to display the contact information.

Sample project setup

03 Configuring a Get

1. Click the Project Settings gear icon and select the Salesforce tab.

Salesforce tab in the Project Settings menu

2. Click Create New in the Get Record tab.

Click Create New under get Records tab

3. In the Object Settings tab configure: Contact as the Salesforce Object, User Action as the Trigger, configure how many matches to pull, and add a description.

Map salesforce fields object settings tab

4. In the Conditions tab configure: the Account ID must equal the value of the Lookup field.

Map Salesforce fields conditions tab

5. In the Mapping tab, map the first name and last name elements to the corresponding Salesforce fields. Click Apply.

Map Salesforce fields mapping tab

Link your configured action to the Get Contacts button using the Salesforce Action node.

04 Preview

The current configuration allows a user to look up an account and display all the first names of the contacts in one input field and all the last names in another input field.

An example of how contacts are displayed without repeat functionality

05 Repeat Strip

You can use Titan’s repeat features to display each contact’s name in a separate strip.

1. Click the Strips gear icon and enable Repeat.

Enabling a repeat strip

Each contact will have a separate strip.

Preview of a repeat strip configuration

06 Repeat Column

You can display the information in a repeat column.

Note: You must disable the repeat function on the strip before proceeding.

1. Click the Columns gear icon and enable Repeat.

Enabling a repeat column

Each contact will be displayed in a separate column.

Preview example of how a repeat column displays

07 Repeat Autofit Container

You can use a repeat autofit container to have a repeat section within a container. For example, a segment of the accordion container requires the information to be repeated. This can be done by inserting a repeat autofit container.

The mapping of the Salefsorce Get was updated to reference the new fields.

Example showing a configured accordion element with a repeat container

Each contact can now be displayed in the first segment of the accordion.

Example of how a repeat container in an accordion works

08 Variables in a Repeat

You can set custom variables for a repeat column by clicking the custom variable gear icon. This can help to bring through each contact’s ID from Salesforce.

enabling repeat column

Simply create a Static contact_id variable and map it in the Salesforce Get.

Custom variables window

Now when the contacts are brought into the repeat column, their corresponding IDs will be stored in the variable. You can access this using the debug feature.

Debug project window showing populated custom variables

09 Got Feedback?

Additional Resources