Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

Show/hide entity on graphical pages

  • hi,

    what would be the easiest way to show or hide an entity on the pages?

    i.e. simple point showing mins remaning... but no relevant when the process is not running...

    i've had a look and not been able to see anything other than making a white image block and covering the item in question based on simple point integer value.



  • if i cannot do this, i know i can do this, but i dont know the code :-/

    server side script... holding register tag...

    test tag > 0 then show text box but embed tag value next to text

    else show nothing...

    i been messing with some syntax but not working..

    any pointers please...


  • i got this but i dont know how to display the value within the <span> bit :-/

    please help


    if (value>0)
    return '<span style="background-color:#F8BB00;font-size:10px;font-weight:regular;border:1px solid #F07800;padding:1px 5px 1px 5px;">defrost time left: <span style="font-weight:bold"> 0 mins</span>'

  • Try this:

    var s = &quot;&quot;;
    if (value &gt 0) {
      s += '&lt;span style="background-color:#F8BB00;font-size:10px;';
      s += 'font-weight:regular;border:1px solid #F07800;';
      s += 'padding:1px 5px 1px 5px;"&gt;defrost time left: &lt;span style="';
      s += 'font-weight:bold"&gt; '+ value +' mins&lt;/span&gt;';
    return s;

  • thanks, that worked fine... like to say i understood it lol.....