Google Hangouts using email address field

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered

I would like to create a field that displays a Google Hangout button that invites the email address.

Here's the Google Hangout API Example for inviting participants:

<title>Hangout button demo: Inviting people</title>
<link rel="canonical" href="" />
<script src="" async defer></script>
<g:hangout render="createhangout"
invites="[{ id : '', invite_type : 'EMAIL' },
                  { id : '', invite_type : 'EMAIL' }]"

I'd like to replace '' with the value in an email field on the record.
Any suggestions?
Photo of Rick


  • 10 Points

Posted 4 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
This is easy to do using the image onload technique:

Google Hangout Button

Pastie Database

See attached screenshot captured just after clicking the first hangout button. I only implemented this feature on the report listing page but it would be simple to add it to other pages such as the view record page.

FWIW, the library platform.js used in this example is Google's polyfill library to bring Web Components to all browsers. 
Photo of Rick


  • 10 Points
Thank you, Dan!