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

Creating a Form with some formula

banglalovers
Registered: Jul 28 2008
Posts: 10

Hi, I am completely new at this forum. So, If I have made any mistake sorry for that.

My Requirements::

I want to build a Form using Adobe Live-Cycle Designer. The Form will be like a Order Form and the Problem is that I want to use some formula or you can say Javascripts for some specific fields in that form.

1. Fields: There will be 9 column. Calculation parts will be associated with 5 columns and with a extra field named "Grand Total". So, I will discuss only about those 5 columns and a extra field named "Grand Total".

Field Name::

i. Price Per A4 Paper- In dozens.

ii. Price Per A3 Paper (sold in 10 dozens only.)

iii. Order Type (This field will be a Dropdown menu with 2 options 1. A3 & 2. A4)

iv. Quantity

v. Subtotal.

vi. Grand Total

Conditions:

1. If A4 is Chosen then the "Subtotal" cell will calculate "Quantity" by the price that is listed on the "Price Per A4 Paper" field.

2. If A3 is Chosen then the "Subtotal" cell will calculate "Quantity" by the price that is listed on the "Price Per A3 Paper" field. The quantity will be multiplied by 10.

3. "Grand Total" Will Calculate all subtotals boxed for Quantity and Price.

4. "Price Per A4 Paper- In dozens." & "Price Per A3 Paper (sold in 10 dozens only.)" fields can be editable in future only by the administrator.

Problems::

1. I have very poor idea about JavaScripts. Though I have applied them successfully in the webpages but I have no idea how use them in Live Cycle.

2. You can think that You will be showing road to a 90% blind person. :P

Waiting for experts comments and suggestions.

Thanks,
Bangla Lovers.

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi banglalovers,

Welcome to the AUC! A good place to start would be to watch this on-line presentation by Thom Parker on extending LiveCycle Designer forms with JavaScript-
https://admin.adobe.acrobat.com/_a200985228/p87746471/

Then you may also want to look over the articles available in JavaScript Corner for specific scripting topics for both AcroForms (PDF forms created in Acrobat) and XFA Forms (PDF forms created in LiveCycle Designer).
http://www.acrobatusers.com/tech_corners/javascript_corner/index.php
(clcik on the small link at the bottom "See all of Thom's tips" for a listing of all the contents).

Hope this helps,

Dimitri
www.pdfscripting.com
www.windjack.com
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You also might want to look at the other eseminars about LiveCycle Designer and using FormCalc, which could be easier to code.

George Kaiser

banglalovers
Registered: Jul 28 2008
Posts: 10
Firstly many thanks to Dimitri and Mr. gkaiseril for giving me such helpful links and notes.

Since I dont have any idea about JavaScripts I think it is not possible for me to create such form with using javascript or any other script. I though that I can use some formulas like Excel but it is not that easy.

Though if any of you could help then ok otherwise I have leave it.

Anyway thanks for your help.

Thanks,
BanglaLovers.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
LiveCycle Designer can use FormCalc or JavaScript. FormCalc can be simplier than JavaScript for you. You also shold look at the templates that are proviced with LiveCycle Designer as some of them include FormCalc and JavaScript within the template, so you see how the coding works.

George Kaiser

banglalovers
Registered: Jul 28 2008
Posts: 10
Will check surely.

Thanks,
Bangla Lovers