I have a drop down box on my form that has all the state abbreviations, I do not know how to get the form to only charge Sales tax on FL only from the drop box.
Thank You for any help.
var st = this.getField("Dropdown").valueAsString;
if(st == "FL")//put your tax calculation here
The code below worked in form the tax wasn't working on mobile version of adobe reader. Is there a better or different way to write this so it works on mobile to? I am new to this!
var st = this.getField("State").valueAsString;
var sub = Number(this.getField("Subtotal").valueAsString);
var dis = Number(this.getField("Discounts").valueAsString);
var ship = Number(this.getField("Shipping").valueAsString);
var total = 0;
if(st == "FL")
total = (sub+dis+ship)*(.07)
total = 0;
event.value = total;
If you have iOS device, you can try using 'PDF Expert' app by Readdle.
Ok entire sheet works on android with reader just not sales tax code thought it was something I did wrong.