• Hi guys, Im using contact form 7 (great plugin!) to make a page on a site for a client.

    Basically, this client has sub-contractors who he needs to be able to log into his site, input some of their info, name, email, price, gst, etc. When they submit the form both the client and the sub-contractor receive an html formatted invoice with each of the cells in the table being occupied by the info gained from the web form. the [gst] tag goes in the GST field etc.

    I need to be able to sum the values of two fields, [gst] and [price] to give a total price which needs to be inserted into the invoice.

    I know that html does not support math, so i was wondering if there is a quick way i can alter the plugin, make my own shortcode which sums the values of others, or use Jquery to sum the values of two fields and put the info into a new shortcode which can then be inserted into the invoice.

    Any help you guys could give me would be greatly appreciated, thanks!

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chkbarlow

    (@chkbarlow)

    I also need to be able to multiply the value of one of the fields by a constant.

    The price field which is inputted from the web form needs to be divided by 0.6 to gain the quantity which should also be inserted into the invoice. cheers!

    Any luck? I’m looking through past questions to see if I can find a similar solution … If not, I may post my own topic.
    If you did have luck, would you please share your code?
    Thanks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to sum two of the email-form values’ is closed to new replies.