Order Form Calculation

Issues related to forms.
Post Reply
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Order Form Calculation

Post by GPK5050 »

Hi...

I'm trying to alter an already existing (and working) order form, but I'm having some issues. The page in question is:

www.carpenters50th/swag2.php

I would like the form to calculate the items ordered. I was able to get the price into the total boxes, but I can't get it to add up in the grand total box. The postage amount appears, but it does not change when the other items are selected.

My format placed in the first total box is:

Condition
Event: Change
Action: Calculate
Target: grandtotal
Expression: Number([polocalc])+Number([tshirtcalc])+Number([capcalc])+Number([programcalc])+Number([ornamentcalc])+Number([coincalc])+Number([postagecalc])

I would also like it to adjust the amount in the box when more than one quantity is selected.

Thank you!

Greg
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Order Form Calculation

Post by Pablo »

To be able to help you I need a (stripped) copy of the project file.
Note however that usually for me it will also take a lot of time to figure out what you have done.
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Order Form Calculation

Post by GPK5050 »

Thank you...

Here is a link to access the file for that page alone:

ftp://us9wt2v7nthz@107.180.47.61/public ... 0Order.wbs

Greg
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Order Form Calculation

Post by Pablo »

I'm sorry, I was not able to load the project because of missing extensins.
Can you please make sure the project does not use extensions and remove all non-relevant pages?

Also, I need to know exactly where to look.
I am happy to help you but I cannot spent hours on this.
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Order Form Calculation

Post by GPK5050 »

Hi...

I cleaned up the file. It should be just one page now...

Let me know...

Thank you!

Greg

ftp://us9wt2v7nthz@107.180.47.61/public ... 0Order.wbs
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Order Form Calculation

Post by Pablo »

If you use a checkbox to change the value on an edit box then the browser will not automatically detect that the value has changed.
You will need to trigger a change event:
in the checkbox add a new condition: action -> trigger change, with the target set to the same field as the other conditions of that checkbox.
GPK5050
 
 
Posts: 44
Joined: Thu Apr 26, 2018 4:03 pm

Re: Order Form Calculation

Post by GPK5050 »

Hi Pablo...

That worked! Thank you.

Now, last thing... is there a way for it to change the value based on the quantity chosen in the field?

Thank you so much!

Greg
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Order Form Calculation

Post by Pablo »

The combobox also supports conditions.

See example 4:
http://wysiwygwebbuilder.com/conditions.html
Post Reply