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

    (@codepeople)

    Hi,

    By default the scope of an equation are the fields in the same form, but you can create global variables in a form, and to use the variable in the equations of the other form. To create global variables in javascript you simply should use the variable, but without declare it with the reserved word: var

    for example, if your equation in the Form A is: fieldname1+fieldname2, you can modify the equation like follow:

    (function(){
    myvariable = fieldname1+fieldname2;
    return myvariable;
    })()

    Now the “myvariable” variable is available globally, and can be used in the equations of the second form on page.

    Best regards.

    Thread Starter misofrappacino

    (@misofrappacino)

    Thank you! The client has changed their mind so I’m all set for now. I will keep this information for future reference though. Thank you so much!
    -C

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Excellent, the best option is always the most simple.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple forms on one page – can I calculate from one to another?’ is closed to new replies.