Template Modif.

 1 Replies
 0 Subscribed to this topic
 14 Subscribed to this forum
Sort:
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
    Posts: 3353
      See solution here:
      https://www.lawsonguru.co...tid/349/Default.aspx
      Thanks for using the LawsonGuru.com forums!
      John