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

    (@jazzigor)

    Hey Proulx06, thanks for your kind words.

    There are currently two ways to get around this situation:
    1) Use default values, different from 0. That’s a setting of the corresponding input element.
    2) Catch the zero-division case with an IF clause. Instead of a/b, type IF(b<>0, a/b, “”)

    In addition to that I’m thinking about a form option to suppress errors altogether. This will be available in future updates.

    Regards,
    Igor

    Plugin Author jazzigor

    (@jazzigor)

    Oh no!! I’ve just realized the second option does not work. That’s a bug.

    I had the same problem. I tried adding value=”ROI” and a few other things, but nothing changed.

    Then I went to wp-content/plugins/jazzy-forms/front/jazzy-forms.js and on line 621 found this:
    this.raise_div0 = function() { throw new Jzzf_Error("#DIV/0!") };

    Remove the #DIV/0! so it looks like this:

    this.raise_div0 = function() { throw new Jzzf_Error("") };

    Problem solved! Be sure to do this only after you’re 100% certain that your form works perfectly! If you have a division by zero error, you won’t get a warning message anymore!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Jazzy Forms] Getting rid of "#DIV/0!"?’ is closed to new replies.