2 Replies Latest reply on Jul 29, 2011 11:57 AM by kmc27

    How do I Validate A Field to Control Visibility of a Second Field?

    kmc27 Level 1

      I have two text fields

       

      Text field #1: an empty field for which the user enters text

      Text field #2. a read only field that is to become visible and display a mesage (via its default value) if a user has entered text into field #1

       

      The validation script I wrote has syntax error that I cannot resolve. Can someone take a look and see 1., If I am on the right track, and 2. If so, what is incorrect in this script?

       

      Thanks in advance for any ideas on this.

       

      if(event.value == '')

      {lbl_coupon request standard appliesFld.display = display.hidden

      }

      else    {

          lbl_coupon request standard appliesFld.display = display.visible

      }