7 Replies Latest reply on Jun 15, 2014 3:51 PM by lizettelizette

    show / hide field based on text in another field

    lizettelizette

      Hi,

       

      I'm trying to make one of my fields reactive to what is the text generated in another field.

       

      At the moment I have this under calculate using custom javascript:

       

      var Mask = this.getField("Course").value;

      if(Mask == 'Swimming') this.getField("Code").display = display.visible;

      else this.getField("Code").display = display.hidden;

       

       

      Whereas Course is the field that is changing and Code is the one that will show/hide based on content of Course.

       

      Any help?