Copy link to clipboard
Copied
Posting terms of sales. If the field "PlatesOrdered" is 10 - 19, the field TOS = "At time of order"
If the field "PlatesOrdered" = 20 - 99, the field TOS = "Net 15"
Else the field TOS = "Net 30"
The below code only produces "Net 30"
var v = Number(this.getField("PlatesOrdered").valueAsString);
if(v=0)event.value = "At Time Of Order";
else if(v>0&&v<20)event.value = "At Time Of Order";
else if(v>19&&v<100)event.value = "Net 15";
else if(v=>100)event.value = "Net 30";
You're using some incorrect operators. Change the first line to:
if(v==0) event.value = "At Time Of Order";
And the last one to:
else if(v>=100) event.value = "Net 30";
Copy link to clipboard
Copied
Hi Nick0128,
Thank you for reaching out.
Would you mind confirming if you are experiencing any issues with the PDF or the string you have mentioned above?
Please let us know if you need any help with the Adobe product.
Thanks,
Meenakshi
Copy link to clipboard
Copied
Try the forum for Adobe Acrobat.
Copy link to clipboard
Copied
You're using some incorrect operators. Change the first line to:
if(v==0) event.value = "At Time Of Order";
And the last one to:
else if(v>=100) event.value = "Net 30";