CRM Messaging Logo
  • Products

    Text Messaging

    Send and Receive SMS, MMS & RCS

    WhatsApp Business API

    Meta partnered WhatsApp

    WAZupp

    Personal WhatsApp Connection

    Email Marketing

    Drang and drop email marketing

    Website Chat

    Handle website chat with AI bot

    Cloud Telephony

    Progressive dialer with bulk calls

    Growth CRM

    Complete CRM for your business

    CRM Messaging Android App
    CRM-Messaging iOS App
    Available on

    SMS, WhatsApp & Calls on Zoho

    Seamless messaging on Zoho CRM, Zoho Bigin, Campaigns and more

    Engage on HubSpot

    Enable SMS, WhatsApp & Call on HubSpot

    WhatsApp on GoHighlevel

    Connect personal or WhatsApp API on HighLevel agency

    SMS, WhatsApp & Calls on Salesforce

    Simplify Your Customer Communication With Salesforce

    more...

    SMS & WhatsApp alerts for Stripe payments

    Elevate Your Payment Experience And Boost Your Business

    Messaging on SuiteDash

    Enhance SuiteDash With SMS & WhatsApp Capabilities

    Email Verifier for Zoho CRM

    Validate leads and contacts emails easily and cleanup databse

    Connect with integrators

    Connect with Zapier, Pabbly, Make and 6500+ systems

    Features

    Workflow Automation

    Automate the actions based on events, keywords and more.

    Phone lookup & Email Verifier

    Remove invalid and landline numbers and undeliverable emails

    Campaigns

    SMS, WhatsApp, Voice, and Email Marketing Campaigns

    Lead finder

    Generate leads with actual phone numbers

    Meetings & forms

    Create meetings with SMS, WhatsApp reminders and forms

  • Services
    • Zoho Consulting
    • HubSpot Consulting
    • GoHighLevel Support
  • Resources
    • SMS Pricing & Policy
      • Message Credits Pricing
      • Text Messaging in USA
      • Text Messaging in Canada
      • Text Messaging in UK
      • Text Messaging in China
      • Text Messaging in Australia
      • Text Messaging in South Africa
      • Text Messaging in India
      • Text Messaging in Italy
      • Text Messaging in Ireland
      • Text Messaging in France
    • WhatsApp Pricing & Compliances
    • Voice Credits Pricing
    • Documentation
      • All docs
      • HubSpot
      • Salesforce
      • Zoho
      • GoHighLevel
      • Stripe
      • Messaging Resources
      • WhatsApp Cloud API
      • API
    • Blogs
    • Whitepapers
      • Whitepaper – Holiday SMS Marketing Ideas that has boosted revenue for SMBs, & Mid Market Businesses
      • Whitepaper – Insurance goes digital with better Customer Experience
      • RealEstate Now Use New Age Conversational Strategy & Unlock New Opportunities​
    • Use Cases
      • Beauty Salon
      • Customer Support
      • Sales and Marketing Conversational Solution
  • Company
    • About Us
    • Talk to Sales
    • Support
    • Become Our Affilitate
    • Partner Registration
    • Privacy & Policy
    • Terms of Service
    • Fair Use Policy
    • Statuspage
    • Vote Your Ideas
    • Security & Trust
      • CRM Messaging Security Strategies
      • Trust and Security at CRM Messaging
    • Career
  • Pricing
placeholder-661-1.png
Login to App
Book Demo

HubSpot Guides

7
  • HubSpot – CRM Messaging Admin & User Guides
  • HubSpot Admin Guide
    • Installation & Registration
    • BuzzMailer Pro – HubSpot Integration Setup Guide
  • HubSpot User Guide
    • Send & Receive SMS / WhatsApp
    • Send Bulk SMS / WhatsApp on HubSpot
    • Send Automated SMS/ WhatsApp on Hubspot
    • Activity History

Zoho Guides

7
  • Zoho – CRM Messaging Admin & User Guide
  • Zoho CRM Admin Guide
    • Installation & Registration on ZOHO
  • Zoho CRM User Guide
    • Send SMS/WhatsApp on ZOHO
    • Send Bulk SMS/WhatsApp
    • Send Automated SMS/WhatsApp on Zoho
    • Sending SMS and WhatsApp Messages via Webhook in Zoho
  • Zoho Bigin Guide
    • CRM Messaging for Zoho Bigin – User Documentation

Salesforce Guides

9
  • Salesforce – CRM Messaging Admin & User Guide
  • Salesforce Admin Guides
    • Setup & Registration
    • Button Configuration
    • Chat Widget, Conversation Widget, and Templates
    • Process Builder & Flows Action
  • Salesforce User Guides
    • User Guide for CRM Messaging for Salesforce
    • 1-1 Conversations
    • Bulk Messaging
    • Automated Messaging

GoHighLevel Guides

9
  • GoHighLevel – CRM Messaging Admin & User Guide
  • GoHighLevel Admin Guides
    • Installation & Registration on GHL
    • How to migrate to WhatsApp OAuth 2.0 for GHL?
  • GoHighLevel User Guides
    • Send & Receive SMS/WhatsApp on GHL
    • Send Bulk SMS/WhatsApp on GHL
    • Send Automated SMS/WhatsApp on GHL
    • SMS/WhatsApp Marketing Campaign on GHL
    • How to send WhatsApp Templates in GHL native Conversations?
    • How to add WhatsApp in Workflow in WhatsApp 2.0?

WhatsApp Business API

10
  • WhatsApp API
  • WhatsApp Admin Guide
    • WhatsApp Setup
    • How to Add a new WhatsApp template?
    • How to migrate to WhatsApp OAuth 2.0 for GHL?
    • WhatsApp Green Tick✅ Verification
  • WhatsApp User Guide
    • How to send templates from portal?
    • How to send templates from GHL Webhook
    • How to send WhatsApp Templates in GHL native Conversations?
    • How to add WhatsApp in Workflow in WhatsApp 2.0?
  • Release Notes
    • WhatsApp Template Creation From Portal

Messaging Resources

16
  • Resources
  • SMS & WhatsApp Templates
    • Healthcare Text Templates
    • Real Estate Text Templates
    • Insurance Text Templates
    • Airline Text Templates
    • Hotels Text Templates
    • E-commerce Text Templates
    • Schools Text Templates
    • Dental Text Templates
    • Recruitment Text Templates
    • Salon/Spa Text Templates
  • Usecases
    • Usecases
    • SMS and WhatsApp Alerts for Cart Abandonment on Shopify
  • SMS Providers
    • How to Add Twilio Phone Number?
    • International Support for Alphanumeric Sender ID
    • CRM Messaging Email Guidelines
api

API Documentation

14
  • Developer Guide
  • WhatsApp API
    • Setup WhatsApp API Account
    • Send WhatsApp Templates
    • Send WhatsApp Non-Templates
    • WhatsApp Delivery Status & Incoming Sync
    • Error Codes
  • SMS API
    • Setup SMS API Accounts
    • Send SMS
    • SMS Delivery Status & Incoming Sync
    • Error Codes
  • Portal API
    • Delete Contact
    • Update Contact
    • Create Contact
    • Error Codes

Suitedash Guides

7
  • Suitedash – CRM Messaging Admin & User Guide
  • Suitedash Admin Guides
    • Integrate SuiteDash with CRM Messaging
    • Setup Chats on Contact Detail Record Layout
    • Configure Automations in Suitedash
  • Suitedash User Guides
    • Conversations, Templates & Chats
    • Send SMS & WhatsApp through Automations
  • Release Notes
    • Release Notes for CRM Messaging Integration v1.0

More Integrations

5
  • Stripe Connector
  • Chrome Connector
  • Pabbly Connector
  • Make Connector
  • Zapier Connector
View Categories
  • Home
  • CRM Messaging Docs
  • Suitedash Guides
  • Suitedash Admin Guides
  • Setup Chats on Contact Detail Record Layout

Setup Chats on Contact Detail Record Layout

To display SMS and WhatsApp chats related to the primary phone number on the contacts detail record page, add the provided JavaScript code in My Account -> Organization Settings -> Platform Branding.

This script waits for the contact detail page to load, identifies the primary phone number, and injects an iframe that displays chats from CRM Messaging related to this phone number.

(function() {
    var urlPattern = /^https:\/\/portal\.leadingcadre\.com\/crmContacts/;
    if (!urlPattern.test(window.location.href)) {
        console.error('This script runs only on URLs starting with https://portal.leadingcadre.com/crmContacts');
        return;
    }

    function waitForElementAndData(selector, dataCheckFunction, callback, maxAttempts = 50, interval = 100) {
        var attempts = 0;
        var checkInterval = setInterval(function() {
            var element = document.querySelector(selector);
            var data = dataCheckFunction();
            if (element && data) {
                clearInterval(checkInterval);
                callback(data); // Execute callback with the data
            } else if (attempts >= maxAttempts) {
                clearInterval(checkInterval);
                console.error("Unable to find the target element or data within the expected time.");
            }
            attempts++;
        }, interval);
    }

function getPrimaryPhoneNumber() {
    var contactFields = document.querySelectorAll('li.ng-scope');
    var phoneNumber = null;

    contactFields.forEach(function(field) {
        var titleElement = field.querySelector('.box-info-title');
        var infoTextElement = field.querySelector('.box-info-text');

        // Ensure both title and info text elements exist before proceeding
        if (titleElement && infoTextElement) {
            var titleText = titleElement.textContent.toLowerCase().trim();
            var infoText = infoTextElement.textContent || infoTextElement.innerText;
            
            // Specifically look for "primary phone" to distinguish it from other phone types like "work phone"
            if (titleText === 'primary phone' && !infoText.includes('@')) {
                // Use regex to match phone number patterns
                var matches = infoText.match(/\+?\d[\d\s\-()]{7,}/); // Adjust regex according to expected formats

                if (matches && matches.length > 0) {
                    phoneNumber = matches[0].replace(/\D/g, ''); // Clean the phone number by removing non-digit characters
                    return; // Exit the loop once the primary phone number is found
                }
            }
        }
    });

    return phoneNumber || false;
}

    function injectIframe(phoneNumber) {
        var targetDiv = document.querySelector('.col-xl-8.contactCrmRight');
        if (targetDiv && !document.getElementById('customIframe') && phoneNumber) {
            var label = document.createElement('label');
            label.textContent = 'Chats';
            label.style.display = 'block';
            label.style.marginBottom = '10px';

            var iframe = document.createElement('iframe');
            iframe.src = `https://app.crm-messaging.cloud/index.php/Hubspot/SendCustomMsg/$id/${phoneNumber}`;
            iframe.style.width = '100%';
            iframe.style.height = '600px';
            iframe.frameBorder = '0';
            iframe.id = 'customIframe';

            targetDiv.appendChild(label);
            targetDiv.appendChild(iframe);
        }
    }

    waitForElementAndData('.col-xl-8.contactCrmRight', getPrimaryPhoneNumber, injectIframe);
})();

In iframe src, make sure to replace the $id with your unique id of the account. Contact support to get this at [email protected]

Ensure the JavaScript is correctly inserted and matches the domain requirements to function properly on your SuiteDash platform.

Updated on February 16, 2024

What are your Feelings

  • Happy
  • Normal
  • Sad
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Integrate SuiteDash with CRM MessagingConfigure Automations in Suitedash

Elevate customer engagement with seamless CRM integration and Leverage Personalized SMS messaging, WhatsApp campaigns and more.

Download Our Apps:

Integrations
  • HubSpot
  • Zoho CRM
  • Salesforce
  • Highlevel
  • Stripe
Automation Tools
  • Pabbly
  • Zapier
  • Make

Resources

  • Blogs
  • SMS Templates
  • WhatsApp Templates
  • WhatsApp Cloud API
  • Documentation
  • Sitemap

Looking for any new features with in CRM-Messaging

Vote Your Idea


Don’t miss our upcoming feature updates! Get Subscribed Today!

Subscribe Now

©2025 CRM Messaging All Rights Reserved.