Forums

ChronoForms calculate Cells (addition)

Ringette08 19 Jul, 2013
I`m trying to build a form for a minor league sports association that will tell the parents what the cost is when the register their child in the sport.

The calculations are based upon Division (age group) and Level of play (Rec, B, A, AA) and for a NEW player a one time reduction is given.

For example: Division + Level - NEW = Total

DIVISION: HouseLeague=$100.00, RegionalTeam=$200.00, NationalTeam=$300.00
LEVEL: REC=$100.00, B=$125.00, A=$150.00, AA=$175.00
NEW player: YES=-$75.00, NO=$0.00

Therefore for the selections above it would be $100.00 + $100.00 - $75.00 = $125.00

Once the selections and calculations are completed, the parent would be notified the cost in the e-mail when that gets sent to them as they submit the registration form for their child.

I am a novice to both ChronoForms and coding so and STEP-by-STEP help (or tutorial) would be appreciated.

PS. From the many other Questions and Answers on the Forum I have determined that more information is probably needed.

The Cells have ALPHA-characters in them not numbers (therefore I believe ``IF statements`` are probably necessary)

If possible could the total registration be calculated and displayed on the form as the parent selects each item (this would be nice).

Other forum questions suggest that Javascript and PHP is/might be required...

Any help is appreciated.

My URL for what I have so far is located at http://server406.webhostingpad.com/~ajaxring/index.php/registration/registration-2013-on-li

Kevin
GreyHead 22 Jul, 2013
Hi Ringette08,

Unfortunately form calculations are heavily dependent on the way your form is set up and the calculation you need so it isn't possible to give general step by step instructions. You will probably need help from someone with some coding experience - though this isn't a particularly difficult task.

Bob

Bob
This topic is locked and no more replies can be posted.