• I have an invoice form that I created and have been using for several years now. Version 3.7 has broken the calculations.

    The variable are simple text input. The calculation below pulls from the label. For example <font color=”red”>Hourly Rate</font> $[text* rate 4/]

    Would be the rate mentioned in the onclick below.

    <input type=”button” value=”Click here” style=”background:red; color:white; border: 2px black solid” onclick=”this.form.thours.value=add(this.form.hours1.value,this.form.hours2.value,this.form.hours3.value,0,0,0,0);this.form.stdue.value=(this.form.thours.value*this.form.rate.value)

    https://wordpress.org/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter shamburg

    (@shamburg)

    to be more specific, all calculation seem to work except the following…

    # of Hours Worked [text hours1 4/ "0"]
    # of Hours Worked [text hours2 4/ "0"]
    # of Hours Worked [text hours3 4/ "0"]
    this.form.thours.value=add(this.form.hours1.value,this.form.hours2.value,this.form.hours3.value,0,0,0,0);

    Thread Starter shamburg

    (@shamburg)

    confirmed that this broke with 3.7. I reinstalled 3.6 and everything works fine.

    Were you aware that your site is currently running a very real risk of being hacked? You need to upgrade WordPress asap.

    Thread Starter shamburg

    (@shamburg)

    interesting, because I am on the latest version. As a moderator I would think you would be more helpful.

    I reinstalled 3.6 and everything works fine.

    Running a old version of WordPress is dangerous.

    Thread Starter shamburg

    (@shamburg)

    [unnecessary text moderated] I reinstalled 3.6 of the PLUGIN.

    [unnecessary text moderated – please read http://codex.wordpress.org/Forum_Welcome ]

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Calculations Broken after upgrade’ is closed to new replies.