Copy link to clipboard
Copied
I recently learned of the Javascript Console in Acrobat, and am having a lot of trouble figuring out what the error messages mean. I am getting 2 in particular that confuse me.
First, no matter what field value I change I get several errors saying:
TypeError: this.getField(...) is null
1:Field:Calculate
How am I supposed to know what field is being referenced? Shouldn't there be a field name instead of "(...)"? I have over 100 calculated fields, so not knowing where this error is coming from makes my life way more difficult.
Separate question for clarification... say fields A + B = C. After entering a number into "A", will I get that error code if nothing has yet been entered into "B"?
The other error I get...
InvalidSetError: Set not possible, invalid or unknown.
Event.value:7:Field PAYOFF.0:Calculate
For the life of me I can't find any explanation on what these error messages could mean. Is there some sort of reference manual I'm missing?
Any help would be awesome before I pull my hair out! Thank you!
Copy link to clipboard
Copied
A + B = C is incorrect.
Copy link to clipboard
Copied
The message is indicating that the field name you are providing does not exist. You need to check the spelling and capitalization of the field name.
Copy link to clipboard
Copied
It will be helpful if you posted the full code, or shared the actual file with us.
Copy link to clipboard
Copied
When using Simplified Field Notation field names cannot contain spaces, special characters, or punctuation marks. If you need to include any field with any of these characters you must precede the character with the JavaScript Escape character to the following character is treated as part of the name of the field. The Escape character is ¨\¨.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now