How can I solve the problem "The value entered does not match the format of the field".
Hello everybody.
This is my first time working in Adobe with Java Script.
I have created a document in which a certain percentage should be deducted from a value.
If all values are subtracted correctly the result should be 0. The formula works fine for some numbers.
var v1 =
this.getField("Reisetage").value;
var v2 =
this.getField("k-an").value;
var v3 =
this.getField("f-an").value;
var v4 =
this.getField("m-an").value;
var v5 =
this.getField("a-an").value;
var v6 = 0;
if(v1=="ein"){
v6 = 0;
}
if(v1=="mehr"){
v6 = v2 - (v3*20/100*v2)
-(v4*40/100*v2)
-(v5*40/100*v2);
}
this.getField("Anreise").value = v6;
