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

Value entered does not match format

mR_Jones
Registered: Jul 6 2009
Posts: 25
Answered

Hello,

I am completely lost, I built a calc script and on a total of 14 fields I'm receiving format error.
If possible I could email someone the page which has errors for them to view.

Thanks

My Product Information:
Acrobat Pro 8.1.2, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Mr_Jones,

This is a common question here and there are a couple issues that may cause this message. When I typed "Value Entered Does not match format" I got a nice list of results from previous questions with several ways to fix it
http://www.acrobatusers.com/search/google/value%20entered%20does%20not%20match%20format?query=value%20entered%20does%20not%20match%20format&cx=010702214422959725198%3Amrw4k197ftq&cof=FORID%3A11&sitesearch=#1288Read through some threads in that list and try out the solutions provided.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
mR_Jones
Registered: Jul 6 2009
Posts: 25
Thanks for the feedback, I'll look into the threads!
It's just a little strange, the form I built previously worked. I'm using this script here within the custom: if(event.value == 0)
event.value = ""; .

So that fields will not append a zero automatically, however this is not working please advise.
True there are a great number of resources here but some are not real good as far as explination, especially for those who are fairly new to this.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You could modify the snippet of code you posted to also ignore a result that is Not a Number.
if ( (event == 0) | isNaN(event.value) ) event.value = '';
This will catch any result of division by zero.

George Kaiser

mR_Jones
Registered: Jul 6 2009
Posts: 25
My form is still giving me "value entered does not match field"
Is anyone willing to take a look at my form, that way information provided may come across better when explained how to correct the error. I am totally lost, any help would be greatly appreciated.

Thanks -
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
I noticed an error in the code I posted.
if ( (event.value == 0) | isNaN(event.value) ) event.value = '';
Have you tried to set the field type to "None" to see what value is being computed?

Are you sure the field where you are computing the sum is causing the problem?

Are any of the fields you are trying to use in your computation the result of a computation?

Could you post your code?

George Kaiser

mR_Jones
Registered: Jul 6 2009
Posts: 25
I've tried setting the field value to none.
I believe I cannot clarify which field is exactly giving me the error.
I receive the error after exiting/tabbing out of a particular field.

I do have a field computation based on the input of another field.

this.getField("NOI3").value = this.getField("NOI2.0").value;
if (this.getField("LTVCapRate1.0").value == 0) this.getField("NOI3").value = "";
if (event.value == 0) {
event.value = '';
}