Check the spelling and capitalization of statements, field names, properties, methods, etc.
With the names you have used for your variables, you can use the 'Simplified Field Notation'. ValueA - ValueB The JavaScript statement for defining a variable is 'var', the property for the value of an object is 'value'.
var f =this.getField("ValueA");var g =this.getField("ValueB");event.value= f.value- g.value;
There are many articles, tutorials, eSeminars on demand at this site that can help you learn how to use Acrobat forms and add interactive to the forms.
With the names you have used for your variables, you can use the 'Simplified Field Notation'.
ValueA - ValueB
The JavaScript statement for defining a variable is 'var', the property for the value of an object is 'value'.
There are many articles, tutorials, eSeminars on demand at this site that can help you learn how to use Acrobat forms and add interactive to the forms.
George Kaiser