Skip navigation
newsusy3
Currently Being Moderated

Dollar sign on the right - French Currency?

Jun 29, 2012 3:59 PM

I am creating a form and need to have the dollar sign appear to the right of the number format. I am given the choice of the "separator" which allows for the way French currency is displayed, but I also need the dollar sign to be on the right-hand side. This should be a choice. Does anyone have scripting instructions to make that work??

 
Replies
  • George Johnson
    9,222 posts
    Aug 11, 2002
    Currently Being Moderated
    Jun 29, 2012 7:17 PM   in reply to newsusy3

    So you want something like: 123 456,89$

     

    Correct? Do you want a space before the dollar sign?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 5, 2012 8:22 AM   in reply to newsusy3

    You could use JavaScript to modify the format for the fields as well as the keystroke.

     

    Search for 'AFNumber_Format" and 'AFNumber_Keystroke' in the Acrobat 6.0 Forms  API Reference

     
    |
    Mark as:
  • George Johnson
    9,222 posts
    Aug 11, 2002
    Currently Being Moderated
    Jul 6, 2012 1:05 AM   in reply to newsusy3

    Here's a sample that demonstrates probably the easiest way to do this: https://acrobat.com/#d=F3joZ1n0HIyYHm3V6MaTTg

     

    It includes a document-level JavaScript that has a script for both the Keystroke and Format field events, which you'll see are called when you look at the Format tab of the Field Properties dialog for the field. It is possible to automate setting the script for the other fields, but it will be easiest if there is a consistent naming scheme for the fields, something like "amount1", "amount2", etc. Otherwise you have to do it manually. If you'd like more help, post again with more information about the field names you're using. If you let us know what version of Acrobat you're using, we can tell you how to get to the document level JavaScript so you can copy it to your form.

     

    Unfortunately, the built-in routines that this example depend on don't allow for a space for the thousands separator. If you need that, it's possible, but a bit more complicated.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points