2 Replies Latest reply on Apr 13, 2016 7:05 AM by michellef25441257

    When a checkbox is checked insert text into another field


      Hi there,

      I know that there have been a lot of other thread like this one but for some reason my code isn't working.  I'm trying to have text inserted into a field when a check box is checked.  Can you please please help.


      For a mouse up event:

          var dateCheckbox = this.getField("Date or");  //checkbox

          var detailField = this.getField("Expiration Detail");  //field



      // if the "date or" box is checked than change the Expiration Detail to "Hello"

          if (dateCheckbox.value == "Yes") { 

              detailField.value = "Hello";