Adding Click to Call to Salesforce.com Forms

From Taridium

(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
<li>Enter a descriptive label such as '''Call Contact'''</li>
<li>Enter a descriptive label such as '''Call Contact'''</li>
<li>Enter an unique button name e.g. '''call_button'''</li>
<li>Enter an unique button name e.g. '''call_button'''</li>
 +
<li>Select '''Detail Page Button''' as Display Type</li>
<li>Select behavior '''Execute JavaScript'''</li>
<li>Select behavior '''Execute JavaScript'''</li>
<li>In the main form enter the following code:
<li>In the main form enter the following code:
Line 18: Line 19:
</li>
</li>
<li>Replace 192.168.55.20 with the IP address of your ipbx system. This can be a local network IP as long as you expect this to only work within your corporate LAN</li>
<li>Replace 192.168.55.20 with the IP address of your ipbx system. This can be a local network IP as long as you expect this to only work within your corporate LAN</li>
 +
<li>Click on '''Save''' to save your changes</li>
 +
<li>Edit the form to which you want to add the call button. E.g. click on '''Contacts''' -> '''Select a contact''' -> '''Edit Layout'''</li>
 +
</ol>
</ol>

Revision as of 16:30, 7 April 2010

This how-to describes a simple way to add a click-to-call button to any Salesforce.com form. You will need the appropriate permissions in order to customize your forms.


Setting up Click to Call

Customizing Salesforce.com

  1. Navigate to the appropriate form customization dialog. E.g. Setup -> App Setup -> Contacts -> Buttons and Links
  2. Click on New under Custom Buttons and Links
  3. Enter a descriptive label such as Call Contact
  4. Enter an unique button name e.g. call_button
  5. Select Detail Page Button as Display Type
  6. Select behavior Execute JavaScript
  7. In the main form enter the following code:
      window.open('http://192.168.55.200/user/c/?call={!Contact.Phone}&progress=2','ipbx call',"width=320,height=210,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")
    
  8. Replace 192.168.55.20 with the IP address of your ipbx system. This can be a local network IP as long as you expect this to only work within your corporate LAN
  9. Click on Save to save your changes
  10. Edit the form to which you want to add the call button. E.g. click on Contacts -> Select a contact -> Edit Layout

Personal tools
Namespaces
Variants
Actions
Toolbox