How to Calculate Time Spent in a Node

In this article, you will learn how to calculate the time spent in a node. Step 1: Create custom fields Create a custom field for the timestamp on node enter. Create a custom field for the timestamp on node exit. Create a calculated custom field for the time spent. Please do not forget to include […]

Read More

Passing Data from Your Website Directly to LeadsHook!

This guide is provided without our free support because setups vary from business to business. This guide is for a technical audience. Please contact us if you need our technical and development services. In this article, you’ll learn how to pass any data from your website to LeadsHook as a custom field. You can pass […]

Read More

How to add CSS to a node

Its possible to modify the visual aspect of any given HTML in a node. As we are scripting, we should really do a comprehensive course on HTML & CSS first. I recommend the official W3C tutorial online: https://www.w3schools.com/ Once we understand that it will be relatively easy to modify the design of HTML elements in […]

Read More

Limit the number of checkbox choices

Sometimes you might need to set a maximum number of available choices when using checkboxes. For example if you had eight choices and you only wanted a max of three of them accepted! For this purpose we will use some custom JavaScript to count how many checks are allowed. Using the custom page node, the […]

Read More

How to Troubleshoot Common Scripting Problems

LeadsHook is highly suitable for scripting via JavaScript. That includes JQuery and almost every other JS library. Here are some tips to ensure your scripts work without any issues. Loading & Firing of Node Level Scripts If you set your script to fire on enter of a node without a delay, the script will fire […]

Read More

How to Add a Pop-Up Form to Your Decision Tree

In this article, you’ll learn how to add a pop-up (modal) so your form appears above the underlying question. Example: Test this Sample Pop-Up Decision Tree: https://marketing.leadshook.io/survey/l5Dt9bDEjmciUkDYu5cXiK4xJDye1Sa29mTISTTw Short Video to Explain Pop-Up Decision Tree Example (Please send your developer or technical resource to this page or contact LeadsHook for any custom requests). Download the sample […]

Read More

Using LeadsHook API

PLEASE NOTE: This API document is NOT for LeadsHook’s API and Webhook nodes. The LeadsHook API is designed so you send and grab data directly out of LeadsHook using another app or server. Working with APIs is best done with the help of a developer The LeadsHook API is mainly used to ‘grab’ your data […]

Read More

Google Places – extra Address verification script

PLEASE NOTE: This script is provided to help you get started. Unfortunately, our free support does not include custom scripts. Any competent JS developer should be able to manipulate this script for your needs. Please contact us if you need help to find a developer. Please thoroughly test before use. When using real time address […]

Read More

How to Send Node-Level API Requests Using JavaScript

PLEASE NOTE: This script is provided to help you get started. Unfortunately, our free support does not include custom scripts. Any competent JS developer should be able to manipulate this script for your needs. Please contact us if you need help to find a developer. Please thoroughly test before use. BACKGROUND In some cases you […]

Read More

FB Hash

Some FB users require their data for FB to be cryptographically secure Facebook allow this using SHA256 ( Secure Hash Algorithm ) Here we will demonstrate how to do this First we need to add our scripts to the global or DT level scripts section. ( In the DT settings ) That means the FB […]

Read More