
Hello,
I would like to convert numbers or currency fields to words using JS or plugins.
For example: If the total cost is 10,000$, a JS should be triggered and set the value of the field in the form to Ten thousand Dollars.
The below API achieves what I am looking for but I am wondering if we could have a native function instead of the API:
https://github.com/BitWeb/number-to-words-api
We might have the total cost value in different currencies (Australian, Canadian, etc..)
How would you suggest achieving the above requirements? Can you provide an example?
Any help is greatly appreciated.
Best regards,
EBMRay
Hi,
I recommend you to do it in plugin (C#) rather than in JS.
I invite you to have a look at this post which shows how to do it in C# : stackoverflow.com/.../converting-numbers-in-to-words-c-sharp