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

Calculation based on checkbox and another field

Community Beginner ,
Mar 09, 2024 Mar 09, 2024

Copy link to clipboard

Copied

Hi all,

 

I need your help with javascript for calculation of value based on checkbox and another field. Based on field (area) and three checkbox another value should be calculated.

1. Field Area - house area

2. Checkbox 1 - 8% tax

3. Checkbox 2 - 23% tax

4. Checkox 3 - 8/23% tax based on house area. For the area of the house greter than 300 tax is mixed. For example: area of the house is 350, 8% tax is calculated to 300 and 23% for 50.

5. Field Price

6. Field Gross Price

 

Fields Area and Price are filled by user. Checkbox 1 is selected by user.

Calculations:

Filed Gross Price =

If Checkbox 1 is selected: Price * 1,08

If Checkbox 2 is selected: Price * 1,23

If Checbkox 3 is selected, Area field is eg. 350. Tax is divaded to 300 and 50 (Area-300): Price + (Price/Area * 300 * 0,08) + (Price/Area * (Area-300) * 0,23)

 

Thank you for help! 

TOPICS
JavaScript , PDF forms

Views

182

Translate

Translate

Report

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
Adobe Employee ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

Hi @Kamil5EF8 

Hope you are doing well and thanks for reaching out.

The workflow you are trying to achieve is might be possible using JavaScript. For more information please check the help pages listed below:
https://acrobatusers.com/tutorials/javascript_console/
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

Hope it will help

Regards
Amal

Votes

Translate

Translate

Report

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 ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

Hi, yes I know. I prepare few other calculations in this file by JavaScript, however I can't find a solution for this case. Too difficult for me 🙂 

Votes

Translate

Translate

Report

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
Enthusiast ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

What is calculation for first and second checkbox, price*tax or price/area*tax?

Votes

Translate

Translate

Report

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 ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

1st checbox - price*1,08

2nd checkbox - price*1,23

 

Area is only taken into account when checkbox 3 is selected.

Votes

Translate

Translate

Report

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 ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

Any idea? 🙂 

Votes

Translate

Translate

Report

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 ,
Apr 13, 2024 Apr 13, 2024

Copy link to clipboard

Copied

LATEST

Hi,

 

Any idea?

Votes

Translate

Translate

Report

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