<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
    <link>https://forums.adobe.com/community/acrobat/forms?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 06 Nov 2014 01:53:18 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-06T01:53:18Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6903981?tstart=0#6903981</link>
      <description>&lt;!-- [DocumentBodyStart:6f1fb73b-9868-470b-a504-37a9179529a6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks for the detailed explanations on how it works/calculates in the background. Looks like I have to learn javascript now. I wish the adobe rep told me this when I rang and asked if this was the right s/ware to do this type of job. They told me sure it has inbuilt functions that help you do this easily...&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6f1fb73b-9868-470b-a504-37a9179529a6] --&gt;&lt;img src='/beacon?t=1415923063935' /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 01:53:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6903981?tstart=0#6903981</guid>
      <dc:date>2014-11-06T01:53:18Z</dc:date>
      <clearspace:dateToText>1 week 22 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6902679?tstart=0#6902679</link>
      <description>&lt;!-- [DocumentBodyStart:b91fc4c3-3504-4362-b3b2-6ee4ad8aa33d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The JavaScript in the PDF is not complied into machine code like a computer language is but the code is read and processed each time the script is called. Also each time a field has to be opened and processed there is some overhead processing the array of fields with calculations and opening each field. As suggested putting all the code in on field removes this overhead. Also using functions to perform a repeated task also requires less process and if the function is at the document level, there is some preprocessing that is not repeated the next time the function is called.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sometimes processing can be improved by locating some code in the actions for a field, especially is this code only needs to be processed when one exits the field, a validation is an example of this type of action.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You really need to study the JS API reference to learn how the various actions are triggered and the MDS JavaScript reference to learn about the features of JavaScript that can help avoid some coding. For example there is a filter feature for arrays than can quickly remove values from an array without having to process the array through a for loop.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b91fc4c3-3504-4362-b3b2-6ee4ad8aa33d] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:19:07 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6902679?tstart=0#6902679</guid>
      <dc:date>2014-11-05T19:19:07Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6901190?tstart=0#6901190</link>
      <description>&lt;!-- [DocumentBodyStart:0340e176-fe2f-46a5-91be-079b3d1ae6ca] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The issue is not with the amount of pages, but with the amount of fields, and mostly, calculated fields.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And it doesn't matter if you use a custom calculation or the built-in command. Finally they're all scripts that have to be executed each time a change is made to any field.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The single-script suggestion basically means you will have one field that has a custom calculation script associated in it. You can use that script to calculate the values of other fields as well. This makes it easier to make more efficient code and to control the field calculation order directly.&lt;/p&gt;&lt;p&gt;It's not a very simple task, though, if you don't know how to write JS code for PDF files.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0340e176-fe2f-46a5-91be-079b3d1ae6ca] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:37:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901190?tstart=0#6901190</guid>
      <dc:date>2014-11-05T12:37:26Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6901089?tstart=0#6901089</link>
      <description>&lt;!-- [DocumentBodyStart:cd8c08d7-799b-4bb7-aaa6-96cbcf3cbc35] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks for your input Gilad.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;Gilad D (try67) wrote:&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From my personal experience it's possible to have that many fields, but&lt;/p&gt;
&lt;p&gt;you're testing the limits of the application, really.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;8 pages is testing the limits? What am I paying for then?? &lt;span aria-label="Laugh" class="emoticon-inline emoticon_laugh" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;I don't know if the issue is the poor memory handling process of Acrobat or&lt;/p&gt;
&lt;p&gt;what, but working with files with a lot of form fields (especially on a few&lt;/p&gt;
&lt;p&gt;pages and with a lot of calculations) can be very frustrating and&lt;/p&gt;
&lt;p&gt;time-consuming.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Yes to both but that's what the form needs. What's frustrating is paying for something that doesn't do what it advertises.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;One thing that you can try is to move all the calculations to a single&lt;/p&gt;
&lt;p&gt;location, ie not have a custom calculation script for each field that&lt;/p&gt;
&lt;p&gt;calculates its value but a single script (for example, the calculation&lt;/p&gt;
&lt;p&gt;script of the total), that first calculates the values of each row, assigns&lt;/p&gt;
&lt;p&gt;it, and then does the total calculation.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Not sure what you mean by this. First I'm not using custom calculation scripts. I'm using the inbuilt 'Value is the...' section on the Calculate tab on each line. I'm only using Custom Calc Script in the one field, the GST field, to do a division calculation as 'Value is the...' doesn't do division.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Secondly, I'm having to do a calculation on each line as it shows the total for that line, eg 2 of a $5 item shows total of $10, then next line could be 3 of a $10 item to show $30 etc, so I don't understand what you mean by 'move all calculations to a single location'. How can a single script show individual lines? Can you explain this a bit further or give me an example? What I tried changing just now was to do a hidden sub total at the bottom of each page, then have the actual Sub Total field at the end do a sum on those 7 fields instead of all 185 fields at once. This didn't help either.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;Remember that each time you make a change in *any *field in the file you're
&lt;p&gt;triggering &lt;strong&gt;all&lt;/strong&gt; of the calculation scripts in all of the fields, which can&lt;/p&gt;
&lt;p&gt;take a while.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Yes I know but like I said this form requires a total on each line, all 185 of them. Can Acrobat not handle this??? And when you say "calculation scripts', do you actually think I'm using individual Calc scripts are you putting 'Value is the...' in the same 'basket' as a Calc script?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cd8c08d7-799b-4bb7-aaa6-96cbcf3cbc35] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 11:32:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901089?tstart=0#6901089</guid>
      <dc:date>2014-11-05T11:32:52Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6900904?tstart=0#6900904</link>
      <description>&lt;!-- [DocumentBodyStart:081b58a5-007f-4c9e-8a82-dbc581a044c8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;From my personal experience it's possible to have that many fields, but&lt;/p&gt;&lt;p&gt;you're testing the limits of the application, really.&lt;/p&gt;&lt;p&gt;I don't know if the issue is the poor memory handling process of Acrobat or&lt;/p&gt;&lt;p&gt;what, but working with files with a lot of form fields (especially on a few&lt;/p&gt;&lt;p&gt;pages and with a lot of calculations) can be very frustrating and&lt;/p&gt;&lt;p&gt;time-consuming.&lt;/p&gt;&lt;p&gt;One thing that you can try is to move all the calculations to a single&lt;/p&gt;&lt;p&gt;location, ie not have a custom calculation script for each field that&lt;/p&gt;&lt;p&gt;calculates its value but a single script (for example, the calculation&lt;/p&gt;&lt;p&gt;script of the total), that first calculates the values of each row, assigns&lt;/p&gt;&lt;p&gt;it, and then does the total calculation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Remember that each time you make a change in *any *field in the file you're&lt;/p&gt;&lt;p&gt;triggering &lt;strong&gt;all&lt;/strong&gt; of the calculation scripts in all of the fields, which can&lt;/p&gt;&lt;p&gt;take a while.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:081b58a5-007f-4c9e-8a82-dbc581a044c8] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:27:36 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900904?tstart=0#6900904</guid>
      <dc:date>2014-11-05T09:27:36Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6900457?tstart=0#6900457</link>
      <description>&lt;!-- [DocumentBodyStart:008474b9-bef6-4ed1-98b0-1a6221166a88] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks for the suggestion Michael, but that didn't help either.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And this is a local setting, not a setting that saves with the document, which means - if it worked - you would have to tell every person you sent the form to, to go into their settings and turn this feature on/off before filling in the document.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:008474b9-bef6-4ed1-98b0-1a6221166a88] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:11:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900457?tstart=0#6900457</guid>
      <dc:date>2014-11-05T05:11:49Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6900456?tstart=0#6900456</link>
      <description>&lt;!-- [DocumentBodyStart:fed4b4a3-b1fc-41e4-b29e-5e0ec115568f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This may help:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-thread-small" data-containerId="3286" data-containerType="14" data-objectId="1625491" data-objectType="1" href="https://forums.adobe.com/thread/1625491"&gt;Button with JavaScript Action crashes Acrobat&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can turn off the Edit &amp;gt; Preferences &amp;gt; Forms &amp;gt; Automatically adjust tab order when modifying fields.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fed4b4a3-b1fc-41e4-b29e-5e0ec115568f] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 04:50:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900456?tstart=0#6900456</guid>
      <dc:date>2014-11-05T04:50:53Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Calculation Lag - Can't Acrobrat Pro handle 500  fields??</title>
      <link>https://forums.adobe.com/message/6900230?tstart=0#6900230</link>
      <description>&lt;!-- [DocumentBodyStart:c969f3e7-9c2b-43e6-8480-e07c1cc58c0d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have an 8 page pdf form with just under 600 fields in it created in Adobe XI Pro.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It's an order form with 185 line items, with each line having 3 fields: a hidden '&lt;strong&gt;Cost&lt;/strong&gt;' field, visible '&lt;strong&gt;Qty&lt;/strong&gt;' field and a read only '&lt;strong&gt;total&lt;/strong&gt;' field which calculates the &lt;span style="text-decoration: underline;"&gt;product of Cost x Qty&lt;/span&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Under those 185 lines there is a '&lt;strong&gt;subtotal&lt;/strong&gt;' field (calculating the sum of all the 185 total fields above it), then a '&lt;strong&gt;GST&lt;/strong&gt;' field with a &lt;span style="text-decoration: underline;"&gt;custom script calculating 10% of the 'subtotal' field&lt;/span&gt;, then a '&lt;strong&gt;Grand Total&lt;/strong&gt;' field calculating the &lt;span style="text-decoration: underline;"&gt;sum of the SubTotal and GST fields&lt;/span&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The form also has normal text fields, drop down lists and radio buttons for user information and payment details and buttons for submit via email, reset and print.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;All fields are in proper tab order and the &lt;span style="text-decoration: underline;"&gt;Calculation fields are in the correct order (Forms&amp;gt;Tasks&amp;gt;Other Tasks&amp;gt;Set Field Calculation Order&lt;/span&gt;) and all fields calculate properly in real time. But there's a 2-3 second lag (showing the adobe hour glass/calculator icon as mouse pointer) when tabbing out of ANY field.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this because acrobat forms cannot handle more than 500 fields in 1 document?? (I ask this because when trying to import the form into Forms Central, it said it can't import because the form has more than 500 fields). Or is there something else going on here?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've googled the lag issue and searched the adobe forums, but the only answer I can find is to check the Field Calculation Order, which I obviously have, and the thread stops there as that was the problem for that user. I couldn't find an answer where the fields were in order (like mine) with extra conversation about it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Surely I'm not the only person to have an order form with 185 items and 500+ fields in a form.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any adobe experts able to shed light on this?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c969f3e7-9c2b-43e6-8480-e07c1cc58c0d] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 02:04:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900230?tstart=0#6900230</guid>
      <dc:date>2014-11-05T02:04:52Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

