Number to text

Out of context: Reply #6

  • Started
  • Last post
  • 14 Responses
  • ********
    0

    ok, I found a script that i've tweaked a little bit, here's a sample:
    http://www.colectivo2.com/nt/Tes…
    It works just fine but I'm having trouble implementing it into a PDF document field. I've replace the last few lines of the script in my pdf form with the following:
    ...
    /* Regresa el número en cadena entre paréntesis y con tipo de moneda y la fase M.N.*/
    TotalEnLetra = cad+moneda+centavos+" M.N.";
    return TotalEnLetra;
    }
    var Cantidad = this.getField("Total");
    event.value = covertirNumLetras(Cantidad.value...

    This is supposed to get the number from the "Total" field, convert it to text and display the result into the field the script is embedded in, but nothing shows up, not even an error message.
    help!

    • you need to change it to Euros though
      ********
    • Ooops. Sorry, didn't realise you are in Mexico.
      ********

View thread