These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Formula Error - The value entered does not match the format

Tampa JC
Registered: Mar 3 2010
Posts: 4

I am trying to make a calculation within my form using the following JavaScript formula:

var a=this.getField("Number of meetings during period");
var b=this.getField("Number of meetings attended during period");
event.value=(b.value/a.value)

However, I am getting the following error message: The value entered does not match the format of the field {Detail Attendance Percentage}.

I have var a and var b formats set as a number and the field where the percentage is calculated formatted as a percentage.

I do not have a vast knowledge of JavaScript and was hoping someone could assist. I have read previous posts with regard to the error message however I have not been successful with the suggested solutions.

Thank you in advance for any assistance/guidance.

JC

My Product Information:
Acrobat Pro 9.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can not divide by zero. Change the format type ot "None" and observe the result.

George Kaiser

Tampa JC
Registered: Mar 3 2010
Posts: 4
gkaiseril thanks for the information. I changed all three formats to "None" and still experience the same issue. Any other suggestions?