Introduction: 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, […]
Articles Tagged: javascript
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 […]
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. Introduction: Step-by-Step Instructions: Step 1: […]
Change the DT title using a script
Introduction Step-by-Step Instructions: In the DT level scripts: Step 1: Create a new script above the closing </head> section Step 2: Simply copy this code: Change the text in double quotes to be your new title.
How to Setup “Custom Page” Node
Introduction In this article, you’ll get an overview of what is a custom page and how to set it up inside your decision tree. PLEASE NOTE: Custom Page node requires expertise in html, css and javascript. LeadsHook support is limited to the custom page node functionality. We do not provide support for custom code and […]
Using Google Sheets as a Lookup Table
Introduction In this article you’ll learn how to use Google Sheets as an external database. You can make API calls from LeadsHook using the API node and SAVE the returning data into custom fields. There are 2 methods available… METHOD 1: Easy Method Using a 3rd Party App (Developer NOT Required) In method 1, you […]
How to Add External Buttons Such as For Affiliate and Ecommerce Offers
Introduction: This guide demonstrates how to incorporate an external script into your decision tree, allowing for the addition of external buttons such as those used for affiliate and ecommerce offers. USE CASE One of the most effective ways to sell online is to help your website visitors or leads to self-select for themselves the best […]
How to Add 3rd Party Tracking Scripts Inside LeadsHook
Introduction: This guide breaks down how to add third-party tracking scripts in LeadsHook. These scripts are generally used for tracking and analytics purposes. Prerequisites: Discussion: Most tracking scripts consist of two parts: LeadsHook provides 3 ways to add 3rd Party Scripts 1. Global Scripts If there are scripts that you’ll use or apply to more […]