These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Anyone know of a way to convert a numeric field value to spelled text?

skhalsa
Registered: Jun 4 2008
Posts: 21
Answered

I need a way to convert a numeric field value to another field as spelled text using script or FormCalc - any ideas?

For example: (1234) in Field1 = (onetwothreefour) in Field2

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
FormCalc has the method WordNum to translate numbers to text.

Put this script into the calculate event of a text field, that should show the text.
$.rawValue = WordNum(NumericField1.rawValue)

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

skhalsa
Registered: Jun 4 2008
Posts: 21
Great! Now I just have to get rid of those pesky spaces between the letters... Thanks for your help!