Error - Text is to large to be displayed in dialog

Explorer ,
Feb 04, 2021

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.

TOPICS
PDF forms

Views

58

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 04, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adosh AUTHOR
Explorer ,
Feb 04, 2021

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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 04, 2021

Copy link to clipboard

Copied

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

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adosh AUTHOR
Explorer ,
Feb 04, 2021

Copy link to clipboard

Copied

I have never done it before. Would you help me on how to do it?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 04, 2021

Copy link to clipboard

Copied

Why does you use so many lines for a calculation?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adosh AUTHOR
Explorer ,
Feb 05, 2021

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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Feb 05, 2021

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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 05, 2021

Copy link to clipboard

Copied

Define arrays at document level and use the arrays in the calculation scripts.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adosh AUTHOR
Explorer ,
Feb 05, 2021

Copy link to clipboard

Copied

I dont know how to. will you help me?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 05, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Feb 05, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more