Hello,
I am having a problem in getting this formula right. I have 3 fields which I called X,Y and Z. X is the dollar amount that a user can change. ie $10,000. Next I then have a field called Y that is a percentage of that dollar amount. ie 10%. Then finally I have a field called Z that is the result of that dollar amount after the percentage has been subtracted. ie $1000.
In the Y field I have entered the code below in the "Custom Format Script" so that the number is the correct display of %. ie 10% not 1000.00%
if (event.value != "") {
event.value = event.value + "%"
}
Next I have a code below that is to be entered somewhere but not sure where.
var a = this.getField("Field X");
var b = this.getField("Field Y");
event.value = x.value * (y.value / 100)
This is far as I have made it. can you please help with this so that I can get the following:
Field Z to have the subtracted percentage of X calculated by the percentage number in Y.
I hope that made sense.
Thanks,
Bill
By the way MS Office in Excel and Access handle the percentage entry and display in this same manner.
George Kaiser