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

Help with calculated field

Community Beginner ,
Jan 21, 2022 Jan 21, 2022

Copy link to clipboard

Copied

Hello all, 

 

I cannot get the "Balance Due" field to equal the "Contract Price" minus "Down Payment" correctly. 

 

* The contract price is entered manually. 

 

* The down payment script is (10% of Contract Price, not to exceed $1,000.00) --

var v1 = Number(this.getField("Contract Price_es_:prefill").value);

event.value = Math.min(1000, v1*.1);

 

* Balance due script is --

 

var v1 = getField("Contract Price_es_:prefill").value;

var v2 = getField("Down Payment_es_:prefill").value;

event.value = v1 - v2;

 

Thank you for any help!

TOPICS
Adobe Sign forms

Views

190

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
no replies

Have something to add?

Join the conversation