Skip to main content
May 11, 2017
Answered

I am having an issue with a Javascript

I am new to Java Scripts. I read several online articles and have had some success but the one I am trying to attempt is not working.  I am on Adobe XI Pro.

What I am trying is a simple algebra calculation  E = A-(B+C+D).     I didn't use the Simplified Calculations because my fields were named with Symbols and Spaces automatically when I created the document.  I was having a problem with the calculation order here anyway.

I have attempted this in two different formats - please see below but neither give ma a calculation.  I am not getting any errors they just don't work.

Can someone please point me in the right direction?

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
May 11, 2017

Something very important to remember is that JS is case-sensitive.

So replace "Event" with "event" and it should work...

8 replies

JR Boulay
Community Expert
Community Expert
May 11, 2017

Hi.

JavaScript is case sensitive, so you should use "event.value" instead of "Event.value".

You should activate the JavaScript Console too.

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 11, 2017

Something very important to remember is that JS is case-sensitive.

So replace "Event" with "event" and it should work...

Translate
JR Boulay
Community Expert
Community Expert
May 11, 2017

We are well synchronized!

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
May 11, 2017

So it seems... :-)

Translate