Merge Variables

  • Updated
  • Just like the mail merge in your favorite document editor, you can add variables to any node in the title, content, question or button text, and pass in values to replace those variables.

    For example, a software company wants to pass in the latest version number into their troubleshooter tree, without having to change the tree each time the version number changes. Mission accomplished by inserting variables into the tree by adding a couple of parameters to the URL.

    Here's a quick primer on adding merge variables:

    1. Edit a node, and insert text like "#NAME#", "#VERSION#' anywhere into the node where you want to substitute a variable.
    2. Pass the name of the variables, and their corresponding values, into the URL for hosting or deploying your tree. 

    Recommended method: Prefix any variable names with zv_ to pass in values. So to pass along NAME and VERSION variables, you would add this to the URL:

    &zv_NAME=Joe+Smith&zv_VERSION=54.0


    Deprecated but still working: You can separate the variables with a | character. Just add a string like this to the end of the Zingtree hosted URL or within the embed code:

    &variables=NAME|VERSION&values=Joe+Smith|54.0

     

    More information:


  • Just like the mail merge in your favorite document editor, you can add variables to any node in the title, content, question or button text, and pass in values to replace those variables.

    For example, a software company wants to pass in the latest version number into their troubleshooter tree, without having to change the tree each time the version number changes. Mission accomplished by inserting variables into the tree by adding a couple of parameters to the URL.

    Here's a quick primer on adding merge variables:

    1. Edit a node, and insert text like "#NAME#", "#VERSION#' anywhere into the node where you want to substitute a variable.
    2. Pass the name of the variables, and their corresponding values, into the URL for hosting or deploying your tree. 

    Recommended method: Prefix any variable names with zv_ to pass in values. So to pass along NAME and VERSION variables, you would add this to the URL:

    &zv_NAME=Joe+Smith&zv_VERSION=54.0


    Deprecated but still working: You can separate the variables with a | character. Just add a string like this to the end of the Zingtree hosted URL or within the embed code:

    &variables=NAME|VERSION&values=Joe+Smith|54.0

     

    More information:


  • Throughout 2022 Zingtree will be upgrading customers to our new faster and more modern user experience! Here's how to tell which experience your Zingtree Authors are currently using.

    Log in to your Zingtree Author account and navigate to My Trees. How does your current My Trees page look?

    Zingtree Classic

    2022-02-25_12-24-51.png

    New User Experience

    mceclip0.png

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request