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

# Calculation based on checkbox and another field

Community Beginner ,
Mar 09, 2024 Mar 09, 2024

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

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
6 Replies 6
Mar 12, 2024 Mar 12, 2024

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/

Hope it will help

Regards
Amal

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

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 🙂

Report

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

Copied

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

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

Copied

1st checbox - price*1,08

2nd checkbox - price*1,23

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

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

Copied

Any idea? 🙂

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

Copied

LATEST

Hi,

Any idea?