Skip to main content
Inspiring
February 4, 2021
Question

Error - Text is to large to be displayed in dialog

  • February 4, 2021
  • 3 replies
  • 1061 views

Hello Adobe Community,

           I have over 2,500 line of codes. I was able to insert only 1810 line of code. The codes are in Custom calculation script. however when I added addition line of codes, adobe displays an error message," Text is to large to be displayed in dialog". Have I done something wrong?

       Is there any limit on how many line of code should a user insert? If there is, any suggestion on how to add the rest of line?

 

Thank you for your help

Adosh.

This topic has been closed for replies.

3 replies

Legend
February 5, 2021

You should divide it up and use document level JavaScript to define functions. Or use an external JavaScript editor.

Bernd Alheit
Community Expert
Community Expert
February 5, 2021

Why does you use so many lines for a calculation?

AdoshAuthor
Inspiring
February 5, 2021

I have different rooms with different specifications. my form has drop down menu with list of room numbers. each room number has it own name, building number, directorate, diamension, and air volume fields. So when a user pick a room number from the drop down menu, the fields related to the room populated automatically. I hope this answers the questions.

Legend
February 5, 2021

Ok, I see why. So you can divide it up (for example, divide the drop down definition into multiple functions, each in a different document JavaScript) or use an external JavaScript editor.

Bernd Alheit
Community Expert
Community Expert
February 4, 2021

Does you use the internal editor or a external Javascript editor.

AdoshAuthor
Inspiring
February 4, 2021

Thank you Bernd,

I am not sure with your question cos I am not really good java. But I would say internal. Under Calculation then Custom calculation script.

Bernd Alheit
Community Expert
Community Expert
February 4, 2021

In the preferences of Acrobat you can activate a external editor.