Skip to main content
New Participant
April 24, 2024
Answered

Custom Calculation Scripts don't work in Adobe Reader

  • April 24, 2024
  • 1 reply
  • 2351 views

Hi community experts,

 

I've created the following form (attached) with custom scripts using advice gathered from this forum and one or two others.

The scripts work perfectly fine in Foxit PDF, but won't function in Adobe Reader.

I am at a loss as to where to go next.

Any help will be gratefully appreciated.

This topic has been closed for replies.
Correct answer Nesa Nurani

Yes, it works fine for me once I make changes in Acrobat.

Your scripts are not registered in Acrobat because you probably create them in Foxit, you should recreate all scripting in Acrobat then it should work fine.

TIP:

Instead of using 14 different scripts you can update your script with a loop, so one script will calculate for all fields.

 

1 reply

Nesa Nurani
Community Expert
April 24, 2024

In this line:

var dateEnd = util.scand("dd/mm/yy h:MM tt,","01/01/23 " + F);

you have an extra comma after tt  remove it.

New Participant
April 24, 2024

Hi Nesa,

I removed the additional comma. It didn't make a difference, unfortunately. (see updated attachment)

I've got two scripts that should be running, the first autofills dates into the Date column, from the date you select for "Fortnight Ending", the second calculates the hours.

I suppose the first question is, do the calculations run for you? 

Could it related to a security setting on the local machine or Adobe Reader?

Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
April 24, 2024

Yes, it works fine for me once I make changes in Acrobat.

Your scripts are not registered in Acrobat because you probably create them in Foxit, you should recreate all scripting in Acrobat then it should work fine.

TIP:

Instead of using 14 different scripts you can update your script with a loop, so one script will calculate for all fields.