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

Display lesser amount between two Text Box Amounts

Community Beginner ,
Dec 21, 2024 Dec 21, 2024

Copy link to clipboard

Copied

Hello, I need to make a calculation but I need to claculate (divide) a Text Field with the lowest amounts entered from two different Text Field boxes in percentage. Is there a java script I could use?

 

Text Field 1 = Amount 1

/ Lesser Amount from two text fields

Text Field  2 = Amount 2

Text Field 3 = Amount 2

I need to clacaltue lesser amount between Text 1 and Text 2 to divide Text 3 with.

Views

107

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 Expert ,
Dec 21, 2024 Dec 21, 2024

Copy link to clipboard

Copied

is this an acrobat question?

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 ,
Dec 21, 2024 Dec 21, 2024

Copy link to clipboard

Copied

Yes, this is in PDF.  

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 Expert ,
Dec 21, 2024 Dec 21, 2024

Copy link to clipboard

Copied

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">

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 Expert ,
Dec 21, 2024 Dec 21, 2024

Copy link to clipboard

Copied

I don't see the division in your example, but you can find the lower amount like this:

 

var amount1 = Number(this.getField("Amount 1").valueAsString);
var amount2 = Number(this.getField("Amount 2").valueAsString);
var minAmount = Math.min(amount1, amount2);

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 ,
Jan 01, 2025 Jan 01, 2025

Copy link to clipboard

Copied

Hello, that didn't work. I am including the pdf sheet I am working on. 

 

I need to divide Text field 1 byt the text field with the lesser amount Text Fied 2 or Text Field 3

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 Expert ,
Jan 02, 2025 Jan 02, 2025

Copy link to clipboard

Copied

LATEST

You need to provide more details, not just say "it didn't work", or share the actual file.

You say you need to divide Text 1 by the lesser amount, but where should this result appear? There are only three fields in the screenshot you sent. There needs to be another one for the final outcome.

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