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??
Yes, I would like a space before the dollar sign... 1456,56 $
I've made up an order form in English, with about 1000 products and have copied all the fields over to a French version.
Sooo... if Javascript is input, will it automatically switch all the existing formats? I don't relish the idea of going into each field, one at a time, to apply the French formatting.
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
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.
North America
Europe, Middle East and Africa
Asia Pacific