Template Modif.

Sort:
You are not authorized to post a reply.
Author
Messages
popsdrown
New Member
Posts: 3
New Member
    On the template for the Smart Notification, we would like to display a warning message depending on the value of the [hostname] token e.g. printing a warning when it is not a production smart notification.

    We've tried using Javascript if statements but they do not interpret the value of the [hostname]:
    if? [hostname] == "some host name" is always false.

    The value of [hostname] prints at the bottom of the template, it just seems like we can't access its value in a conditional.

    Would the hostname be a property of the document object where we could do something like
    var hostname = document.foo ?

    By the way, this is not one of the tokens listed in the documentation appendix on Templates.

    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      See solution here:
      https://www.lawsonguru.co...tid/349/Default.aspx
      Thanks for using the LawsonGuru.com forums!
      John
      You are not authorized to post a reply.