Discussion:
form field calculation: simplified field notation or javascript... this should be simple?
(too old to reply)
tntgalx10
2012-02-15 18:41:17 UTC
Permalink
All I need to do is have Field2 auto-fill the following calculation:

Field1 * .75

So I'm not multiplying a field by another field, but rather using a
constant of .75.

?!?! I've tried simplified field notation as listed above, but does
nothing.

I tried a "workaround" that "worked" but useless when you "clear
form": invisible field that has an entry of .75, then use that field
to multiply by the other, but problem is if form is cleared, .75 entry
disappears (tried read only, tried locking...)

Any ideas how to do this? Ugh. I know it has to be simple!...
tntgalx10
2012-02-15 18:46:22 UTC
Permalink
Post by tntgalx10
Field1 * .75
So I'm not multiplying a field by another field, but rather using a
constant of .75.
?!?!  I've tried simplified field notation as listed above, but does
nothing.
I tried a "workaround" that "worked" but useless when you "clear
form":  invisible field that has an entry of .75, then use that field
to multiply by the other, but problem is if form is cleared, .75 entry
disappears (tried read only, tried locking...)
Any ideas how to do this? Ugh.  I know it has to be simple!...
I actually just figured this out for myself! Apparently acrobat won't
work for this if you have a space or any other character other than a
letter in your field names!

Problem solved. :) YAY!
o***@goodyville.com
2013-03-03 07:22:29 UTC
Permalink
I just had the same problem and your thread here helped me fix it. One thing to note: you can have underscores in your field names. It appears that numbers and symbols that could be confused for operators (e.g. + or - ) cause it to not work.
g***@gmail.com
2014-08-25 18:30:10 UTC
Permalink
Post by tntgalx10
Field1 * .75
So I'm not multiplying a field by another field, but rather using a
constant of .75.
?!?! I've tried simplified field notation as listed above, but does
nothing.
I tried a "workaround" that "worked" but useless when you "clear
form": invisible field that has an entry of .75, then use that field
to multiply by the other, but problem is if form is cleared, .75 entry
disappears (tried read only, tried locking...)
Any ideas how to do this? Ugh. I know it has to be simple!...
You can use some special characters in the simplified field notation option but you need to precede the special character with the JavaScript escape character.

Field names need to start with an alphabetical character and then can be followed by 1 or more alphanumeric characters. To include special characters or white space one needs to precede the special character or white space by the JavaScript Escape character.
n***@gmail.com
2016-06-02 06:35:21 UTC
Permalink
Post by g***@gmail.com
Post by tntgalx10
Field1 * .75
So I'm not multiplying a field by another field, but rather using a
constant of .75.
?!?! I've tried simplified field notation as listed above, but does
nothing.
I tried a "workaround" that "worked" but useless when you "clear
form": invisible field that has an entry of .75, then use that field
to multiply by the other, but problem is if form is cleared, .75 entry
disappears (tried read only, tried locking...)
Any ideas how to do this? Ugh. I know it has to be simple!...
You can use some special characters in the simplified field notation option but you need to precede the special character with the JavaScript escape character.
Field names need to start with an alphabetical character and then can be followed by 1 or more alphanumeric characters. To include special characters or white space one needs to precede the special character or white space by the JavaScript Escape character.
Sorry to resuscitate this thread, but I cannot have this work ...
I want to do something like FieldB = FieldA * 5
So, a problem very similar to what the OP wrote.
I made sure to have my field names use only letters.
I go in the simplified field notation for FieldB, click Edit, enter "FieldA * 5" (without the quotes), then click OK ... and it returns back to the Properties pop up, with the "Value is not calculated" checked
Any chance someone can help?

Loading...