Skip to main content
Inspiring
October 15, 2018
Answered

RangeError: Invalid argument value. Field.display

  • October 15, 2018
  • 1 reply
  • 2125 views

I cannot identify why I am receiving this message:

ERROR MESSAGE:

RangeError: Invalid argument value.

Field.display:2:Field rdo.Trid:Mouse Enter

SCRIPT: this is a mouse enter script attached to a radio button and manipulates the text field, "txt.HelpPage6".

var help6 = this.getField("txt.HelpPage6");

  help6.display = display.visible;

  help6.value = "\rNOTE: Although the lender's and owner's premiums will populate automatically when you click here, you may change their values in the 'Premium' field in the cost columns of Section 17.a. or 17.b. To reinstate the auto-generated premiums simply click here again."

COMMENT: This script worked just as intended for three days before this error surfaced and no changes have been made in the relevant fields.

This topic has been closed for replies.
Correct answer George_Johnson

BTW, what might have happened is a bug in some code overwrote the value of display.visible, which should be 0. This should go away with a restart of Acrobat, as long as the buggy code does not execute again.

1 reply

Inspiring
October 16, 2018

In the interactive JavaScript console, enter this line of code:

display.visible

and press Command + Return

It should then return a value of zero:

0

Report back if it shows something else. You could also try replacing display.value with 0 (zero) to see if it makes a difference.

George_JohnsonCorrect answer
Inspiring
October 16, 2018

BTW, what might have happened is a bug in some code overwrote the value of display.visible, which should be 0. This should go away with a restart of Acrobat, as long as the buggy code does not execute again.

ODuinnAuthor
Inspiring
October 16, 2018

I entered display.visible in the console, pressed command + return and the returned value was 0

I believe it was bug as described: When I restarted Acrobat the problem had disappeared.