Custom calculation scripts for fillable PDF
Need help with this. Been googling for the last couple of hours and I just decided its easier to just post here.
I have created a fillable PDF, which is fine. But I am trying to make it easier for people to fill out when it comes to totals.
I have Quantity, Price, Discount and Net columns. I want the Net column to auto fill based on the Quantity times Price minus the Discount (I can get this to work in excel using =B1*(1-C1)*A1 which works fine) But I am clueless how to make this work in this. I don't know if it needs to be javascript or the Adobe scripting language.
I do have the Discount column set to type percentage and a custom validation script of "if (event.value !== "") {event.value = event.value / 100 ;}" so that is stops that weird value of 30 becomes 3000%
Help???
