This example demonstrates a simple calculation to get a total.
Step 1: Create the form fields you need on Dynamic Forms. Each solution will be different and in this demo, we chose to use very basic fields.
Step 2: This is the javascript used for this demo: $(Total) = parseFloat($(WidgetCount) * 11.99).toFixed(2);
This has been added to the field called WidgetCount. Under Advanced Field Options, find the box called "Client Side Event" and plug in your javascript. The same script needs to be added in Module Configuration under Initial Javascript.
This total can be used to process a payment. Visit our Form Demos to see Demo 6 for integration with Authorize.net and Demos 15-18 for examples of integration with PayPal.
See other Form Demos.