Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Does you use the internal editor or a external Javascript editor.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
In the preferences of Acrobat you can activate a external editor.
Copy link to clipboard
Copied
I have never done it before. Would you help me on how to do it?
Copy link to clipboard
Copied
Why does you use so many lines for a calculation?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Define arrays at document level and use the arrays in the calculation scripts.
Copy link to clipboard
Copied
I dont know how to. will you help me?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You should divide it up and use document level JavaScript to define functions. Or use an external JavaScript editor.