6 Replies Latest reply on Aug 28, 2014 2:18 AM by Wildways

    Is it possible to show/hide a result text field only if another Text field is visible and has content?

    Wildways

      Hi

       

      Please could someone tell me if it is possible to make a text field visible only if another text field is visible and has content?

       

      I have this which works for the content part, but sometimes the field is hidden, so the script must not apply.

       

      var v1 = getField("Text1").value;

      event.target.display = v1 !== ""  ?

      display.visible : display.hidden;

       

      What I need is something along the lines of:

       

      var v1 = getField("Text1").value;

      event.target.display = (v1 !== "" && v1!=="Hidden") ?

      display.visible : display.hidden;

       

      Thanks for any advise.