I have a resource materials order form.
I have all the Quantity and Unit prices multipling to a total without a problem.
I have all the base totals adding up to a Sub Total without a problem.
Heres where the fun starts...
I then have a shipping charge that I need added on.
$0.00 - $25.00 adds $7.00
$25.01 - $50.00 adds $8.50
$50.01 - $100.00 adds $12.00
$100.01 and over adds $15.00
Is there a way to program something like this in a calculation or anyway to make it work? I also want to have the shipping charge needs to be added displayed in a box I have laid out already.
Here is a link to the form if anyone doesn't understand.
http://www.blockparent.on.ca/documents/forms/ResourcesOrderForm_Fillable.pdf
Thank you in advance to anyone that can help me on this. I also apoligize my JavaScript programming is very weak.
You would put this in a custom calculation script in your Total Charge field instead of using the calculation method that is being used now. Here is the script. Just remove the /* at the beginning of the code and the */ at the end. Those are comments and the script won't perform if they are there.
/*
var mySubTot = getField("Sub Total").value;
if(mySubTot != 0.00)
{
if(mySubTot >= 0.00 && mySubTot <= 25.00)
{
this.event.value = mySubTot + 7.00;
}
if(mySubTot >= 25.01 && mySubTot <= 50.00)
{
this.event.value = mySubTot + 8.50;
}
if(mySubTot >= 50.01 && mySubTot <= 100.00)
{
this.event.value = mySubTot + 12.00;
}
if(mySubTot > 100.01)
{
this.event.value = mySubTot + 15.00;
}
}
*/
Hope this give you some idea of an automatic way to get shipping costs add in instead of having the user choose something.
StevenD