Contact Form 7
Need to sum two of the email-form values (3 posts)

  1. chkbarlow
    Posted 2 years ago #

    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!


  2. chkbarlow
    Posted 2 years ago #

    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!

  3. Nikki Withrow
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic