• Resolved uafinsee

    (@uafinsee)


    Hi,

    I have a form with multiple dynamically calculated fields and one of them (fieldname9) does not produce any value when the form is first loaded.

    But when I move a slider or change anything (even change back to the default values,) it works fine.

    First I thought there`s some mistake in formula, but fieldname20 is identical and it works without problems.

    Also checked in preview mode. The problem remains.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @uafinsee

    Your equation fails because the ca_interest does not exist yet when the equation is evaluated.

    A possible solution would be to enter the following piece of code as part of the equation entered into the fieldname9 field:

    
    var fake=fieldname8;
    

    The fieldname8 field creates the ca_interest variable. The previous piece of code ensures the equation of the fieldname9 field is evaluated after evaluates the equation of the fieldname8 field.

    Another solution would be to insert a hidden field in the form containing the value of this variable and then use the field in the different equations.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘One field doesn`t calculate on form load’ is closed to new replies.