-
1. Re: Takes over a minute to jump from field to field on Android
dc46352558 Mar 11, 2017 2:49 PM (in response to dc46352558)Further to my post above, this is how long it takes to 'validate' or move from one field to the next
(1) when the form has 16 pages ... roughly 80 seconds
(2) when the form has 3 pages ... roughly 20 seconds
(3) when the form has 5 pages ... roughly 80 seconds
... this makes the form ususable.
-
2. Re: Takes over a minute to jump from field to field on Android
dc46352558 Mar 12, 2017 4:03 PM (in response to dc46352558)So I removed almost all the Validation javascript and the performance is still unacceptable.
This is what I have now ...
(1) each page may have 2-3 fields
(2) the first field has a FORMAT of a number with zero decimal places and no VALIDATION
(3) the second field has a simple CALCULATION based on the first field, like the following
//CALCULATION for 得分
event.rc = true;
var calc = getField("班级11_无法记住福星号人数").value;
var result = 0;
var limit = 10;
if (calc <= limit) {
result = limit - calc;
}
event.value = result;
(4) the third field is a string input for a comment field with no VALIDATION
When there are 3 pages, it takes about 20 seconds to move from one field to the next after input; and 30 seconds for 5 pages and so on. It appears the system goes through all the fields regardless; so the more fields there are, the slower it gets.
I believe there is something wrong with the Android implementation as I don't have the performance issue on the iPad.
Any help or suggestion would be appreciated ... even a simple confirmation that fillable forms are not quite ready for the Android platform.
-
3. Re: Takes over a minute to jump from field to field on Android
DavetheBari May 23, 2017 4:38 PM (in response to dc46352558)I have found the same trouble. On one of my forms, code that prevents unacceptable choices in a bunch of checkboxes took so long (over 30 seconds) that the Reader seemed to forget what it was supposed to do!
I have found that the cause of these delays is probably the way that Reader for Mobiles handles JavaScript. although I have never found any statement by Adobe about this, it appears to me that Reader for Windows compiles all the javaScript in the form when the form is loaded. Reader for Mobiles does not do that. Instead, it appears to interpret JavaScript that is called, as it is executed. This takes a lot longer than executing a pre-compiled set of code. And further, the interpretation spends AGES going through comments! I always right heaps of comment in my code, to assist others that may have to work on it. I found that removing X lines of comment made a huge reduction in execution time - more so than removing X lines of code!