My PDF has a Form field, which gets populated with the current using below document script.
var f = this.getField("Today"); f.value = util.printd("mm/dd/yyyy", new Date());
It works fine in our desktop version of the Acrobat reader. However this script is not running in Samsung Galaxy S4.
Please advise the possible next steps?
1. Does any specific version of android operating system or any specific version of acrobat reader will support this script execution?
Yes I'm using Adobe Reader for Android only.
I'm not sure what exactly you meant by right place.
One correction to my question is that the field I'm quoting is not the FormField, it is the normal field. I'm not sure whether that will make any difference.
Your code accesses a from field that may have the read only property so only a script action can update the field.
But the field is getting updated in Desktop version of acrobat reader, not in the mobile version.
Ok. Yes, This is a document level script, not the field level
Ah.. ok... You're going to want to move that script to a hidden text field on the form. Document-level scripts seem to run on iOS but I've never seen one run on Android.