• Resolved sebastopolde

    (@sebastopolde)


    Hello,

    I am crashing my form !

    What i want to do is a test form with calculated result to display witch character suit you the best in a videogame
    The topology is :
    1 Checkbox questions for player score
    2 Calcul each character_score*player_score = adequations_score.
    3 for each character, if he got the best score, display a textfield,else do not display.

    I’m stuck at phase 3, i Can display a textfield for my first character if he got a positive score (at leant one Checkbox il checked) but if i uncheck the box (to hide the textfield) my chrome crash.

    I sucessfuly tested the process on an other form, and on my phone it even crash when i load the page for the first time.

    I suppose it’s linked to the Big amount of calculated field (more than 100) that i used.

    Is it possible ? How could i overpass the problem ?

    Thanks a lot for your help !

    • This topic was modified 3 years, 1 month ago by sebastopolde.

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

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

    (@codepeople)

    Hello @sebastopolde

    There are some issues with your form.

    First, I’ll try to describe how the plugin works. If you vary a field’s value, the plugin checks all the equations affected by this field and evaluates them. The evaluation of the equations provokes a change in the values of the calculated field too. So, the process is repeated multiple times until no field varies its value.

    Once described how the plugin works, I’ll try to indicate the possible causes for the endless loops.

    * If you use a field in its own equation, this generates an endless loop.

    * If you use field A in the equation of field B and field B in the equation of field A, you are generating an endless loop. The chain of fields could be longer, field A in the equation of field B, field B in the equation of field C, field C in the equation of field A, closing the circle.

    * Something similar happens with the dependencies.

    In short, if your form is crashing, please, check the possible endless loops between the equations and dependencies.

    Now, the problems in the form.

    You are using the fieldname30 in the equation of the fieldname30, the first cause for endless loop.

    You cannot enter equations in the dependency rules, you cannot define a dependency rule as: value==MAX(fieldname30,fieldname77,fieldname78,fieldname79,fieldname80,fieldname81,fieldname82,fieldname83,fieldname84,fieldname85,fieldname86,fieldname87,fieldname88,fieldname89,fieldname90)

    As I recommend above, check every equation and dependency you have defined in the form to prevent endless loops.

    Best regards.

    Thread Starter sebastopolde

    (@sebastopolde)

    Thank a lot,

    I’ll try to figure it out !
    As i know the problem is due to endless loop i think i can manage it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Too much field ?’ is closed to new replies.