Copy link to clipboard
Copied
I have a timesheet that has a weekending in the header and dates for the times Sun-Sat.
When I change the w/e saturday date then the Sun-Sat dates update with javascript on my desktop PC.
The dates do not update on the Acrobat Reader App on my iphone.
Timesheet attached.
Any ideas?
The javascript was written for me. Here is the javascript for Sun date to update:
//<AcroForm>
//<ACRO_source>Date1.0:Calculate</ACRO_source>
//<ACRO_script>
/*********** belongs to: AcroForm:Date1.0:Calculate ***********/
var s1 = this.getField("MainDate").valueAsString;
if (s1=="") event.value = "";
else {
var d1 = util.scand("dd-mmm-yy", s1);
d1.setDate(d1.getDate()-6);
event.value = util.printd("dd-mmm", d1);
Copy link to clipboard
Copied
Acrobat Reader for iOS doesn't support this.
Copy link to clipboard
Copied
Thanks Bernd. It is weird that all the total hour calculations work but dates don't. Do you know of any work around?
Copy link to clipboard
Copied
Hi,
Hope you are doing well.
We don't have that feature for mobile application at present. We do not support javascripts for Mobile apps. Thank you for highlighting this to us. It's in a future enhancement pipeline. You will get an official announcement as well as a notification when this will roll out.
You can use the following link to share your feedback/raise a new feature request to the product team directly: https://www.adobe.com/products/wishform.html
Thank you for your time and cooperation.
Regards,
Ria
Copy link to clipboard
Copied
Hi Ria,
Most of the JavaScript actually works on the mobile app for my iPhone just not the dates.
Everything works perfectly on PDF Expert for my iPhone so that is what I'm suggesting employees to use.
Android is still a problem with no JavaScript working.
Would be good for everyone to use Acrobat Reader mobile and for the JavaScript to work on iPhone and Android.
Thanks,
Patrick