• Resolved Marin Marinov

    (@mpmarinov)


    Hello,

    I have a problem with the calculation. It is this:

    I have fieldname2, fieldname4 and fieldname6 where I write numbers e.g. 1.5, 5.2 and 10
    I still have fieldname27 and fieldname30

    The following source is in filedname27:

    (function () {
    if (fieldname6> fieldname2)
    return prec (fieldname6 / fieldname2,2);
    }) ()

    If fieldname27 is greater than 0, I show fieldname30

    The following source is in filedname30:

    (function () {
    if (fieldname27> 1.5)
    return prec (fieldname6 / fiedname4,2);
    }) ()

    Fieldname27 is calculated, but fieldname30 just shows up and stays empty.

    Why is that and what kind of solution can I find.

    Thanks to all who helped.

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

    (@codepeople)

    Hello @mpmarinov

    The structure of the equations are correct, but I don’t know if the values of the fields satisfy the conditions you have included on them. Please, indicate the URL to the page where the form is inserted to check it in action.

    Best regards.

    Thread Starter Marin Marinov

    (@mpmarinov)

    I have the problem resolved. Something with automatic calculation was not ok.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with the calculation’ is closed to new replies.