txt.me offers a built-in form for your visitors to requests a phone call back right from the chatbox.
How to trigger this form from a website?
There should be a button, a link, or any other element on your website that you would like to use for lead generation and collect the visitor’s phone number the moment they see it.
Let’s connect this element to the call-back request form.
Connect the call-back form to an HTML link, <a>
In this case, simply change the href=”” to this link:
So the link would be seen as:
Connect the call-back form to an HTML button, <button> or <input>
For a button the code will be slightly different, we will need to override the onclick event:
<button onclick="txtme.api.openWidget(['show_call_me_back']);">Call me</button>
Turn the form on for your widget
The phone icon and the form itself can be turned on and off on the Appearance > General page.
Just check the check box and Publish the changes.
Now you can collect leads from any button on your website.