Skip to main content
Contact Loop
Rain avatar
Written by Rain
Updated over 4 months ago

Contact Loop

A contact loop allows you to loop multiple contact information for a specific contact role, which can be added to smart blocks.

For example, if you have multiple home inspectors for the buyer to choose from, you can create a contact loop to save you time entering all of the different home inspector's information. Instead, the loop would list out each contact that has the home inspector contact role.

Using Contact Loops in Smart Block

Step 1:

From the hammer icon, go to Smart Blocks or press CTRL + S from your keyboard to open it.

Step 2:

Click Add Smart Block and enter the Smart Block Name then copy and paste the name to the Smart Block Merge Field. Click the Add button.

Step 3:

From the message block, click the Merge Field button or press CTRL + A from your keyboard to open Merge Fields and choose Utilities.

Step 4:

Click the Contact Loop to automatically copy it to the clipboard and paste it into the message block.

Step 5:

From Merge Fields, go to Contact Role then copy and paste the contact details into the message block from the Smart Block.

Step 6:

If you receive an error message about an invalid Contact Loop, please follow the steps below.

Example:

  • Contact Loop Formatting Error: [START_CONTACT] is invalid, [END_CONTACT] is invalid

  • In the source code for this smart block, [START_CONTACT] and [END_CONTACT] should each be on their own line in the following format.

How To Fix This Issue

  1. Use this format, <div> and </div> at the beginning and end of each line.

  2. Don’t forget to add the contact details in the smart block after the <div>[START_CONTACT]</div> and before the <div>[END_CONTACT]</div> (e.g. buyer’s name, buyer’s email, buyer’s phone number, etc.).

  3. Click the <> icon on the editor toolbar below to inspect and fix your source code.

  4. Click the Validate Smart Block button to correct the wrong format.

Smart blocks must be properly formatted to work, there's no way around this.

Here Is A Valid Code Example

<div>[START_CONTACT]</div>

<div>{{buyer_full_name_inc_middle}}</div>

<div>{{buyer_business_name}}</div>

<div>{{buyer_cell_phone}}</div>

<div>[BR]</div>

<div>[END_CONTACT]</div>

They cannot be like this

<div>[START_CONTACT]<br/>{{buyer_full_name_inc_middle}}</div>

<div>{{buyer_business_name}}</div>

<div>{{buyer_cell_phone}}</div>

<div>[END_CONTACT]</div>

If your contact loop isn't working, and you've reviewed the valid code example above, reach out to us so we can help figure out why it isn't working.

Did this answer your question?