There are no settings or options to put the image side by side with the text on the answer button, however, a little CSS should do the job. Here is the CSS code: And here is the code explanation. Please feel free to adjust the code according to your needs. And here is the final […]
Articles Tagged: script
How to add a tooltip
In this article, you will learn how you can add a tooltip. A tooltip is often used to specify extra information about something when the user moves the mouse pointer over an element. LeadsHook provides 2 options to add a tooltip in a node. First Option: Using node level script To add a script at […]
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 […]
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 […]
How to Setup Pop-Up Poll Campaign Using Custom Page Node
Please Note: Custom Page node requires advance technical skills so is best managed with a developer .In this article, we’ll share an example of the use of custom page node to create a poll with a pop-up form. The answer selected is also saved into a custom field. NOTE! The DT.setField function is sitting at […]
A simple way to prevent searching engines from indexing your decision tree
To prevent most search engine web crawlers from indexing your decision tree, Add the following script under admin and use it for any/all DTs you want. To prevent most search engine web crawlers from indexing a page on your site, place the following meta tag into the <head> section of your decision tree: To prevent […]
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 […]
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 […]
Do calculations using a script
You might be aware of the calculation custom field. It exists so that you can do custom calculations However, its also possible to do calculations using JavaScript In a Q&A node, add a script Give it a name, for type choose script, and set it to fire on exit of the node Inside the script […]
Change the DT title using a script
Normally the project name will be the DT title. The DT title is the text that appears in the browser tab. However, its possible to override this using a script You could change the title at any time. For example node by node. In this example we will change the title for the whole DT […]