Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Need to make some fields calculated.

Community Beginner ,
Apr 28, 2023 Apr 28, 2023

Hello Friends.

Today i need your help in this form. Please check the image and my options are:

The calculations needed are below. I need the Acrobat Custom Calculation Script to put in these four fields, “Max IPC,” “Option 1,” “Option 2,” and “Design Center Costs.”

 CALCULATE MAX IPC - If “Down Payment Percentage” drop-down is “Less than 10%,” “Max IPC” should equal 3% of the “Base Price” value. - If “Down Payment Percentage” drop-down is “10% - 25%” “Max IPC” should equal 6% of the “Base Price” value. - If “Down Payment Percentage” drop-down is “25% or more” “Max IPC” should equal 9% of the “Base Price” value. CALCULATE OPTION 1 Option 1 equals 5% of “Base Price” value. CALCULATE OPTION 2 If “Max IPC” is equal or greater than $20,000, “Option 2” should display “$20,000.” Else If “Max IPC” is less than $20,000, “Option 2” should display the “Max IPC” value. CALCULATE DESIGN CENTER COSTS If “Max IPC” is less than $20,000, “Design Center Costs” equal 20,000 minus “Max IPC” Else if “Max IPC” is equal or greater than $20,000, “Design Center Costs” equal 0.

93827E45-6C92-4A66-8481-18C1391B4811.png

TOPICS
Edit and convert PDFs
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 05, 2023 May 05, 2023

What have you tried to do so far? 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 05, 2023 May 05, 2023

Actually I did not do anything yet.

In image you can see that there are last four fields which I need to make them calcualted.mainly  focus is downpayment percentage filed.

CALCULATE MAX IPC - If “Down Payment Percentage” drop-down is “Less than 10%,” “Max IPC” should equal 3% of the “Base Price” value. - If “Down Payment Percentage” drop-down is “10% - 25%” “Max IPC” should equal 6% of the “Base Price” value. - If “Down Payment Percentage” drop-down is “25% or more” “Max IPC” should equal 9% of the “Base Price” value. CALCULATE OPTION 1 Option 1 equals 5% of “Base Price” value. CALCULATE OPTION 2 If “Max IPC” is equal or greater than $20,000, “Option 2” should display “$20,000.” Else If “Max IPC” is less than $20,000, “Option 2” should display the “Max IPC” value. CALCULATE DESIGN CENTER COSTS If “Max IPC” is less than $20,000, “Design Center Costs” equal 20,000 minus “Max IPC” Else if “Max IPC” is equal or greater than $20,000, “Design Center Costs” equal 0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 05, 2023 May 05, 2023

So are you interested in learning how to do this yourself? or did you just want free development? Cause you know, this is a little bit of work. Perhaps you should consider hiring a developer. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 08, 2023 May 08, 2023

I am interested in learning how to do it myself.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 08, 2023 May 08, 2023

Ok then, the best way to start is as simple as possible, i.e. a single calculation. The first calculation is the MaxIPC

Have you set any export values for the dropdown?

If you set them to the numbers used in the calculation, then there is no need for scripting. You can use the standard Product calcualtion or Simplified Field Notation. To this end, remove all spaces from your field names. 

 

The Option 1 calcuation can also be done with Simplified field notation. 

 

Here are two articles that will help you get started:

https://helpx.adobe.com/acrobat/using/manage-form-field-properties.html

https://acrobatusers.com/tutorials/print/how-to-do-not-so-simple-form-calculations/

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 08, 2023 May 08, 2023
LATEST

Hello Thom,

Thanks for reply. let me try it first.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines