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

Field Notations

New Here ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

I have used the Simple field notation: TotalListPrice-Discount. Nothing shows up in the Net Before Tax Field.

I have also tried   event.value=this.getField("TotalListPrice").value-this.getField("Discount").value;   and nothing works.

What am I missing? I do not know anything about Java script.

Thanks

TOPICS
Acrobat SDK and JavaScript

Views

289

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 , Mar 05, 2019 Mar 05, 2019

That means you didn't enter the correct field name. Make sure you enter

spaces and upper/lower-case letters exactly as they appear in the Fields

List.

Stick with the custom calculation script, though. It's the better option.

Votes

Translate

Translate
Community Expert ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

Either one should have worked... Are there any error messages in the JS Console (Ctrl+J)?

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 ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

Hi,

I have:

TypeError: f is null

1051:byteCodeTool

and

TypeError: getField(…) is null

1:Field:Calculate

I have no idea what this means. What do I need to do?

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 ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

That means you didn't enter the correct field name. Make sure you enter

spaces and upper/lower-case letters exactly as they appear in the Fields

List.

Stick with the custom calculation script, though. It's the better option.

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 ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

LATEST

It worked!!! Yay!!! Thanks!!!

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