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

I am preparing Fillable order form through Adobe Reader I have a special price (if you buy one from the product will cost $11 any additional from the same product will cost $9 could you please help me on this

New Here ,
Jul 18, 2016 Jul 18, 2016

Copy link to clipboard

Copied

I am preparing Fillable order form through Adobe Reader I have a special price (if you buy one from the product will cost $11 any additional from the same product will cost $9 could you please help me on this

TOPICS
Acrobat SDK and JavaScript

Views

566

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

correct answers 1 Correct answer

Community Expert , Jul 20, 2016 Jul 20, 2016

So let's say the quantity field is called "Quantity" and the total field is called "Total".

You can use this code as the custom calculation script for Total:

var quantity = Number(this.getField("Quantity").value);

if (quantity<=1) event.value = quantity*11;

else event.value = 11 + (quantity-1)*9;

PS. I'm moving this question to the PDF Forms forum

Votes

Translate

Translate
Adobe Employee ,
Jul 18, 2016 Jul 18, 2016

Copy link to clipboard

Copied

Hi mahas40823778 ,

Please provide the application name you are using for preparing form, Adobe Reader (Free version) will not allow you in Preparing Form.

Also please elaborate what you are experiencing so that can help you further .

Regards,

Yatharth 

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
New Here ,
Jul 18, 2016 Jul 18, 2016

Copy link to clipboard

Copied

Thanks for your return. I am using Adobe Pro can create a lot of formula. This special price. Thanks

Sent from my iPhone

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 ,
Jul 20, 2016 Jul 20, 2016

Copy link to clipboard

Copied

LATEST

So let's say the quantity field is called "Quantity" and the total field is called "Total".

You can use this code as the custom calculation script for Total:

var quantity = Number(this.getField("Quantity").value);

if (quantity<=1) event.value = quantity*11;

else event.value = 11 + (quantity-1)*9;

PS. I'm moving this question to the PDF Forms forum

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