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

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

New Here ,
Jul 19, 2016 Jul 19, 2016

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]

TOPICS
Acrobat SDK and JavaScript
4.2K
Translate
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 ,
Jul 20, 2016 Jul 20, 2016

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
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 ,
Jul 20, 2016 Jul 20, 2016

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
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 ,
Jul 20, 2016 Jul 20, 2016

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
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 ,
Jul 20, 2016 Jul 20, 2016

Good to know! Thanks.

Translate
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 ,
Oct 03, 2016 Oct 03, 2016

I fought with this same problem for a while and found a bizarre workaround...

If I opened the field properties by going to the Tools Pane field list, right-clicking and selecting "Properties...", I had the same behavior as above.

But... if I accessed the field properties by double-clicking on the field in the form, I was able to use the exact same dialog to enter the calculation.

Translate
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 Beginner ,
Apr 11, 2017 Apr 11, 2017

Thank you so much for posting the "workaround"! I knew the Simplified Field Notation worked, because I have an old form I'd used it in. But for the life of me couldn't figure out why it didn't accept my entry this time, even though it was EXACTLY the same as the old form.

This is CERTAINLY a bug, as there is no reason the Properties field should not act the same way no matter how it was opened.

Thank you!

Translate
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 ,
Apr 11, 2017 Apr 11, 2017

You should report it here: Feature Request/Bug Report Form

Translate
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 Beginner ,
Apr 11, 2017 Apr 11, 2017

Thanks! I submitted it as a Bug today.

Translate
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 ,
Jul 29, 2024 Jul 29, 2024
LATEST

7 years later this is still a problem and I spent an hour trying to figure it out until I came upon your solution.

 

Pretty mad, not gonna lie. But thank you very much for posting this solution

Translate
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 Beginner ,
Aug 02, 2018 Aug 02, 2018

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
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 ,
Jul 30, 2022 Jul 30, 2022

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

 

Screenshot 2022-07-30 120737.png

Translate
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 ,
Jul 31, 2022 Jul 31, 2022

This has nothing to do with the issues discussed here.

Translate
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