How to use a custom call buttonLast Updated: June 23, 2018
Do you know you can use your own custom call button to initiate the Extend Call Widget? This is particular useful if you already have several other buttons on your site that initiate things like live chats. Or if you want a more conspicuous "Call Us Now Button". Or perhaps you just want something shiny made by you.
Don't worry, we've got you. And it's super easy. Follow these steps and you'll be running in to time!
- Go to your Extend Dashboard
- Go to Developers tab
- Copy everything in the script text colored green. The code you will copy should look something like:
- Now in your custom button, add this attribute: onclick="extendInitCall()". Your sample custom button will look something like this:
<script src="https://extendapp.io/api/plugin.js" data-public-key="XXXXXXXXXXXXXXX" data-show-default-button="true" ></script>
<button onclick="extendInitCall()">Call us now</button>
<script src="https://extendapp.io/api/plugin.js" data-public-key="XXXXXXXXXXXXXXXXX" data-show-default-button="false" ></script>
Do you know that you can pass caller details to the call interface automatically? This is useful for when your users are already signed into something like your app or dashboard and you already know who they are. You can help them skip the form they have to fill before calling. Learn how to pass caller details automatically here.