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

How to output to dollars?

Hcare123
Registered: Jul 10 2009
Posts: 6
Answered

I can't get the value to output into dollars
for ex. value=2.5; //outputs "$250"

this.getField("hospitaldeduct").value=0
if (this.getField("Combo Box1").value==1)
{
this.getField("hospitaldeduct").value=2.5;
}
if (this.getField("Combo Box1").value==.9)
{
this.getField("hospitaldeduct").value=0;
}
if (this.getField("Combo Box1").value==.8)
{
this.getField("hospitaldeduct").value=0;
}
if (this.getField("Combo Box1").value==.7)
{
this.getField("hospitaldeduct").value=0;
}

thanks!!!

My Product Information:
Acrobat Pro 9.1, Macintosh
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
What exactly does display?

What are the setting on the 'Format' tab for the 'hospitaldeduct' field?

In which field and which action for that field is the script located?

George Kaiser

Hcare123
Registered: Jul 10 2009
Posts: 6
It displayed percentage, because I didn't choose the dollar format in the 'Format' tab.

Thanks!