Copy link to clipboard
Copied
Trying to just create this simple formula, but it doesnt seem to be working. Thoughts? For context both the variables are calculated by adding other fields in the Adobe Form.
(Head Count_Totals*0.5)-(Primary Workpoints_Totals*1)
Copy link to clipboard
Copied
For "Simplified Field Notation", the fields cannot contain spaces or punctuation.
The solution is to rename the fields to remove all spaces and punctuation.
Copy link to clipboard
Copied
Hey I removed all the spaces, but it still doesn't seem to be working. I'm almost wondering if its not recognizing the variables, idk...
Copy link to clipboard
Copied
The names in the script must exactly match the names of the form fields.
Are any errors reported in the Console Window?
Copy link to clipboard
Copied
Also, the calculation you've shown will only work in the Simplified Field Notation Calculation area.
Copy link to clipboard
Copied
Thanks for the reply. I'm still not getting it right somehow. I was wondering if you could tell me how this would be different if I did it in the Java script instead of the simple notation?
Copy link to clipboard
Copied
What field names does you use?
Copy link to clipboard
Copied
You can read all about writing basic calculation scripts here:
https://www.pdfscripting.com/public/How-to-Write-a-Basic-PDF-Calculation-Script.cfm
You could also post your form so we can look at it.
Copy link to clipboard
Copied
Add a back-slash before each space in your fields' names, or use a script.
[Edited]