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

Javascript language for my Page Qty & Sub Total ?

alebar14
Registered: Oct 31 2007
Posts: 5

This is my first time using Adobe Acrobat Pro version 8. Anyway, before I ask a further question, I would like to ask if I am in the right direction getting my value:

if(this.getField("myCheckBox.0").isBoxChecked(0)){
this.getField("myTextField") = 1;
}else
if(this.getField("myCheckBox.1").isBoxChecked(0)){
this.getField("myTextField") = 1,495.00;
}

The value as I assume is 1,495.00 as I wanted to sum it up with the rest of the field so I can get a SUB TOTAL price of a photography album package.

As I found everything fine and there is no 'error respond' ,so I assume I am in the right direction.

Anyway, I want to make a JavaScript calculating language for:

1. Page Qty , I want to put any value (1,2,3,...) and multiply with $195 and it will sum it all up at SUB TOTAL
2. SUB TOTAL from all the CLICKED photography package

How do I do that ?

Pls find the image at:
http://imajr.com/Original.aspx?Id=queens_404454

alebar14
Registered: Oct 31 2007
Posts: 5
Anyone...? Please I really have to finish this client project. I am a graphic designer. Not a Scripter. Thanks !
alebar14
Registered: Oct 31 2007
Posts: 5
If you go to Apple site, when you start buying something on its Apple Store, you will see 'Add to Chart' page where you can click its radio buttons and see the SUB TOTAL cost directly. I want to applied the same system with Javascript on Adobe Acrobat Professional 8.

How do i do that ? Any sample ?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you looked at the "Store.PDF " supplied as a form sample on the distribution CD-ROM from Adobe?

It works by clicking on a button to "Buy It" button.

For a revised version see "Sample?", http://forum.planetpdf.com/wb/default.asp?action=9&read=53714&fid=34#147054

George Kaiser