2 Replies Latest reply on Nov 6, 2015 2:28 AM by try67

    Custom Calculation Script - Allow text field when checkbox is selected

    emilyp70953729

      I have a check box that if not checked, the following section auto populates "N/A"; however, if the check box is checked, I want the user to be able to complete the text fields in the following section.

       

      Here is the code I'm using to auto populate "N/A":

       

      var a =""

      if (this.getField("cbGeneralLiability").value != "On")

      {

      a="N/A "

      }

      event.value=a.

       

       

      What coding do I use to allow the user to input text if the check box is "On"?

       

      As the formula stands now, if the check box is checked, and I attempt to insert text in the following text fields, the text does not appear.

       

      Capture.JPG