1 Reply Latest reply on Sep 6, 2012 8:04 AM by gkaiseril

    Can you apply a currency format to a multi-line textbox?

    ahlaj77

      InvoiceExample.jpg

      In the Amount column, I am using a multi-line textbox to display the amounts of the items in the Description. However, I would like the amounts to have two decimal places, use commas, and a dollar sign infront of each. Is this possible? Below is example of my code for the first two amounts.

       

       

      var v1 = this.getField("IL-2 Subtotal").value;
      var v2 = this.getField("Imiquimod-10 Subtotal").value;

      if(v1 == 0 || v1.length === 0)
      {
        v1 = "";
      }
      else
      {
          v1 = this.getField("IL-2 Subtotal").value + '\n';
      }
      10:12 AM 9/6/2012
      if(v2 == 0 || v2.length === 0)
      {
        v2 = "";
      }
      else
      {
          v2 = this.getField("Imiquimod-10 Subtotal").value + '\n';
      }