Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Do you want to insert both forms in the same web page?
    Do you want to display the result as part of one of forms?

    Best regards.

    Thread Starter Stokie Worm

    (@chris_wareham)

    Hi, im looking to keep both forms seperate but calculate multiple values from seperate forms together and display in a single page in WordPress.

    Form A – has multipe fields with a current starting balance field

    Form B – has multiple fields with also its own current starting balance

    i would like to display a calutated value as in a running total balance on a new page Dashboard to show both calculated values.

    form A – current starting balance £100
    form B – current starting balance £200

    Dashboard to display total balance £300

    thanks Chris

    Plugin Author codepeople

    (@codepeople)

    Hi,

    To get it follow the steps below:

    1. Insert the Form B in the thank you page associated to the Form A.

    2. Create in the thank you page a javascript variable, with global scope. The variable should to contain the result calculated in the Form A

    3. Insert a calculated field in the Form B to calculate the final price, using the javascript variable in the second step.

    4. Finally, display the result in the thank you page associated to the Form B

    Best regards.

    Thread Starter Stokie Worm

    (@chris_wareham)

    Thanks for the reply,

    I appreciate the support however i have tried to follow these steps and still cant figure out what i’m supposed to do. I know it’s probably my knowlege.

    Or am i needing to upgrade

    Thread Starter Stokie Worm

    (@chris_wareham)

    Form: Bank Accounts – Field Name: Starting Balance <%fieldname9%> [CP_CALCULATED_FIELDS id=”7″]
    Form: Book Makers – Field Name: Starting Balance <%fieldname11%> [CP_CALCULATED_FIELDS id=”8″]

    Dashboard Page: [CP_CALCULATED_FIELDS_VAR name=””]

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you insert the form 8 in the thank you page of the form 7 ([CP_CALCULATED_FIELDS id="8"]), you should insert a summary shortcode in the same page:

    [CP_CALCULATED_FIELDS_RESULT]
    <pre style="display:none;"><script> var starting_balance = <%fieldname9_value%>;</script></pre>
    [/CP_CALCULATED_FIELDS_RESULT]

    and now in the Form 8 it is possible to use an equation similar to:

    IF( typeof starting_balance != 'undefined', starting_balance+fieldname11, fieldname11 )

    If you need additional help, don’t hesitate in request a custom coding service through my private support page:

    https://cff.dwbooster.com/customization

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calculations From Multiple Forms’ is closed to new replies.