• 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

67

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

LATEST

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