Contact Loop
Rain avatar
Written by Rain
Updated over a week ago

Contact Loop

It allows you to loop multiple (same contact role) contact information and this can be added to Smart Blocks. If you have multiple buyers or sellers, or home inspectors this can be useful because you don’t have to enter your clients’ information individually such as name, email, and/ or phone number.

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 and it will 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.

Important:

  • 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. Put this format, <div> and </div>

  2. Don’t forget to add their 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 on 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 have to 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>

Did this answer your question?