How To Split First Name and Last Name

If you are capturing the lead’s full name in one custom field and wanted to display ONLY the first name on the next node, add the below script on the node level. Please note: The example script above ‘{full_name} is where you are saving the leads full name. You need to replace this with the […]

Read More

LeadsHook Contextual Custom Fields

LeadsHook has the following ‘secret’ custom fields so you don’t have to enter values manually each node.LeadsHook will automatically replace the values of the CURRENT decision tree and node into these fields.  And these values are automatically replaced on every node where these custom fields are used. Warning! The values of these fields CHANGE for […]

Read More

Tracking Your Decision Tree Version Numbers

In this article you will learn about decision tree version numbers. Whenever you PUBLISH your decision trees, LeadsHook assigns a new version id. Your decision tree also has version number appended to your decision tree name… You can also track version id, via this special custom field… _c_dt_ver Adding Decision Tree Version Number to Your […]

Read More

Survey/Quiz Score – using Sum Plus feature

When creating a survey or quiz you might need to assign points to your questions and tally up a score. One way that this is possible is using the sum plus feature. Using the sum plus feature we create a single number custom field and assign it to multiple nodes. Instructions:

Read More

How to Add Google Tag Manager to LeadsHook

Setting up cross domain tracking is one of more advanced topics and even more so when using Google Tag Manager. The GTM container attached below (see Video 3) does all of the heavy lifting for you but if you do not have an advanced understanding then troubleshooting issues is going to be challenging. So please […]

Read More

How to create a time stamp custom field.

Each lead is stamped with the ‘created at’ time stamp. However, there is no way to call this field in your Decision Tree. So let’s examine the case where you need to use your own time stamp custom field. Simply create a text field called ‘timestamp’ And then copy/paste this code into a node script […]

Read More

Conditional Logic using Calculated fields

The ternary operator is an operator that exists in some programming languages, which takes three operands rather than the typical one or two that most operators use. It provides a way to shorten a simple if else block. In this article we will apply this technique using a calculated field. Here’s an example So if the business skill variable is less […]

Read More

How to pass a parameter from a script to a custom field.

If you use custom scripts, sometimes you will want to pass a scripted variable to a custom field. The syntax looks like this: Note that the first parameter is the custom field name without the curly brackets. So {full_name} would be written as ‘full_name’. The second parameter is the value you want to pass to […]

Read More

Default value behavior

When you create a custom field you have the option of specifying a default value. For example: You can see the default value is “true” Now, its also possible to override this value in a question node. You have to assign the question a custom field and provide values. For example: Here you can see […]

Read More