Skip to main content
Participant
Jul 20, 2016 3:28 AM UTC
Question

Adobe DC - Simplified field notation won't accept mathematical operation.

I am using Adobe DC. I am trying to enter a simple equation in the "Simplified field notations:" feature under the Calculate tab in my text box named, "OverallPercentage" (without the quotes). I click the radio button for Simplified field notation: then click the edit button and the "Create and edit javascripts" window pops up. I enter the simple mathematical operation, "GrandTotal/488" (without the quotes). I click the "OK" button and the Calculate tab reappears with the Simplified field notation box empty and the radio button unselected but the "Value is not calculated" radio button is selected (this is the default configuration). It's though my inputs were completely ignored. I do not know what is going on! I have researched this problem and cannot find any answers and I am following all of the many tutorials to accomplish this seemingly simple task. Does anyone know what I am missing?

[Adobe is the COMPANY name... but there is a program named Acrobat DC]

[Moved from non-technical Forum Lounge to specific Program forum... Mod]

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Participant
Jul 30, 2022 7:32 PM UTC

Make sure you're signed in to your Adobe account.

 

Translate
try67
Community Expert
Community Expert
Jul 31, 2022 7:52 PM UTC

This has nothing to do with the issues discussed here.

Translate
Participant
Aug 2, 2018 6:47 PM UTC

I banged my head on this wall forever...finally I asked my hubby (who is a SharePoint developer) to look at the form with me... Turns out the problem is that there should be an okay button in the JavaScripts dialogue box, and mine didn't show. There might be other things you could do (I read a forum that suggested changing the size of Adobe's native JavaScript editor box), but what the hubby and I did was switch to the Notepad as the JavaScript editor.

In Adobe choose edit, then preferences, highlight JavaScript on the left, and then click the "Use External Javascript Editor" Button, in the windows explorer dialogue box, locate your C drive>Windows folder>System32 folder>then scroll down beneath the sub folders to the notepad and highlight it, and click open), I then returned to the simplified notation option in the forms field properties, and entered my simple notation (Field1-Field2), and then chose save in the notepad editor in the file drop down menu, and GLORY HALLELUJAH...it worked.

Hope this helps.

Translate
try67
Community Expert
Community Expert
Jul 20, 2016 8:51 AM UTC

Try putting a space between the values and the operator. If that doesn't work just use a custom calculation script:

event.value = Number(this.getField("GrandTotal").value) / 488;

Translate
Participant
Jul 20, 2016 9:20 AM UTC

Try67: Thank you for your response. I tried your suggestion but I got the same result. I also got the same result when I tried to enter anything into the custom calculation box. Fortunately, Adobe DC crashed. When I restarted it and brought in the form I was editing, the Simplified field notation accepted my simple equation "GrandTotal/488" (without the quotes) and everything worked the way it supposed to.

I should have figured (based on multiple digital experiences) that a lot of problems are solved by re-booting, power-cycling, shutdown and re-start, etc., ad nauseum. I call it "defibrillating"; or, using the defibrillation technique.

Thanks again!

Translate
try67
Community Expert
Community Expert
Jul 20, 2016 9:24 AM UTC

Many times such problems can also be solved by deleting the field, saving and closing the file, and then re-opening it and re-adding the field...

Translate