• can contact form 7, add up several columns?

    like the sum of text 1 + text 2 + text 3 = text 4

    when text 1 = 10
    text 2 = 10
    text 3 = 10
    then the result in text 4 is 30

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, you’d need to do this kind of addition using some custom JavaScript I think. E.g. loop over the fields and add them together, have it triggered either on keyup on each field or by a specific button to click on to total them up.

    They could also be added together when the form is submitted using some backend logic but this wouldn’t be shown to the user at the time so frontend JavaScript would be where I would do this.

    Thread Starter MasG

    (@dhevilz)

    do you have a sample java script that can be used?

    @dhevilz Sorry, I’m afraid I don’t have anything specific to hand, I have done something similar using Contact Form 7 before so I know it is possible to do it. You would need some competence with JavaScript / jQuery coding to be able to implement.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SUM fields’ is closed to new replies.