Skip to main content
Known Participant
Mar 5, 2020 9:44 PM UTC
Answered

How Can i Add Naira Currency Symbol in my Adobe Form

Hello all, please I need someone to assist me in looking at the following currency script for Naira, I have searched and tried several approaches but don’t know why am not getting the right result in my form, the following is the script I picked from Thom_Parker's post on the same topic, from the following link: https://acrobatusers.com/tutorials/formatting_text_fields/, but it still did not work on my form.

 

event.value = String.fromCharCode(0x0A3) + event.value;

 

which by the above script description the following should give me the Naira currency symbol i need:

 

event.value = String.fromCharCode(0x20A6) + event.value; 

 

but instead, i get a bullet circle symbol on the field. i have used three different font type: "Open Sans", "Helvetica", and "Arial" but none of them gave me the sign, i have equally worked another clean page with a singular form field, yet i got the same result.

 

The following picture is how my currency symbol should look like this:

Please i will appreciate any support in this direction. Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Mar 6, 2020 8:01 PM UTC

Thank you so much Bernd_Alheit, and try67, it has now worked, I used Tahoma font-type and it worked, but there is one more thing here, please how can I introduce separator to the figures, instead of straight digits as it is now, I will like it to read as amount with commas, like N10,000.00 instead of N10000, please I need help to fix that. Thank you so much.

 


Use this code:

 

if (event.value) event.value = "\u20A6" + util.printf("%,0.2f", event.value);

11 replies

try67
Community Expert
Community Expert
Mar 5, 2020 11:20 PM UTC

Use the Unicode value, like this:

 

event.value = "\u20A6" + event.value;

Translate
Known Participant
Mar 6, 2020 6:37 AM UTC

Thank you so much try67, am very grateful for your response, but i have entered this script and it is still not giving me the symbol, instead i get a bullet circle sign like the picture below: 

 

 

this is exactly how i entered the script in the custom format page below:

 

please is there anything I am not doing right here?

 

i have equally used this:

event.value = String.fromCharCode(0x20A6) + event.value;

but still it didn't work.

Translate
Bernd Alheit
Community Expert
Community Expert
Mar 6, 2020 8:14 AM UTC

For the field use a font like Arial.

Translate