The value entered does not match the format of the field

New Here ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

I keep getting an error ... The value entered does not match the format of the field [Ten Pay].  The simplified field notation I am using is (BalDue / #Mo) + Disc$.  Can someone help correct this error?

TOPICS
Acrobat SDK and JavaScript

Views

68

Likes

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
Most Valuable Participant ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

This happens when you try to divide by zero. Search the forums for "division by zero" and you'll find the code to solve it.

Likes

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
LEGEND ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

You can also set the format of the field to "None" and see the result of the calculation without any formatting. Sometimes using the custom JavaScript calculation can help you debug the issue.

Likes

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
Most Valuable Participant ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

If you do that the value it will display will be "Infinity", most likely.

Likes

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
LEGEND ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

LATEST

I usually see "NaN".

Likes

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