• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript Dates

New Here ,
Sep 06, 2021 Sep 06, 2021

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);

 

 

 

TOPICS
Android , iOS

Views

296

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

Acrobat Reader for iOS doesn't support this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 06, 2021 Sep 06, 2021

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Sep 08, 2021 Sep 08, 2021

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

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2021 Sep 08, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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