0 Replies Latest reply on Mar 4, 2015 9:43 AM by Sean.twyman

    Format textbox if checkbox value is yes.

    Sean.twyman

      I have a text box formatted as currency. I also have a check box

       

      what I want to achieve is if the checkbox.value is'yes' then to change the format of the text box and put the value as 'waived'

       

      here is some javascript i have in place on the check box mouse up event.

      if (getField("ShpWaived").value =="Yes")
      {this.getField("Shipping").value = "Waived"}
      

       

      However when i try to check the check box i get an error message , I think because the format of the text box is set as currency with a $ a the front

      value not match.png

       

      How would i go about resolving this.