View Full Version : Adding up dynamically added fields

29-Apr-2008, 12:19 PM

I'm setting up a 2-page form right now and I'm wondering if the formmail computation module can handle something for me.

The first page on the form has the option of dynamically adding new form fields via javascript ('registrant1', 'registrant2', etc). On the second page of the form, I need to show an order summary with a value based on the number of dynamically added registrants.

Can the module deal with dynamically added fields?


29-Apr-2008, 09:04 PM

All fields properly created with HTML or with JavaScript get submitted to the server.

The computations occur on the server when the fields are processed by FormMail.

FormMail doesn't (and cannot) know where the fields came from or how they were created.

So, yes, the Computation Module can deal with the fields you've described.