Support » Plugin: Contact Form 7 » Contact Form 7 – Can I calculate the difference between 2 fields

  • fhecksher

    (@fhecksher)


    I’m completely new to WordPress and plugins, so please forgive me if this has been answered somewhere else.

    I’m using contact form 7 as a booking facility and have also activated the Contact Form 7 Calendar plugin to add date pickers (arrival and departure dates).

    Is it possible to create a field that adds the number of days or nights between the two dates?

    Many thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • silvercrow

    (@silvercrow)

    I dont know about a plugin but you can do that with javascript

    with something like this
    function calc(form) {
    c = form.a.value+form.b.value;
    form.c.value = c;
    }

    fhecksher

    (@fhecksher)

    🙂 Thanks! Where would I put that code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 – Can I calculate the difference between 2 fields’ is closed to new replies.