• Resolved mikecrf121

    (@mikecrf121)


    Hello,
    I am trying to capture the submit of the form to the millisecond and pass that along into the email body that is a result of the forms submissions. i can capture the time and display the time is a div with id=demo but im not sure of the lgic on how to pass that along into the actual email sent as a result of the forms submission??? any help would be greatly appreciated, will rate 5 stars, the code below is what i use to capture the submit is milliseconds, but like i said not really sure of logic from here as i feel like its to late once i capture the time to pass that into the form cuz im assuming im actually capturing the successful submission time…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mikecrf121

    (@mikecrf121)

    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7submit’, function(){
    var d = new Date();
    var x = document.getElementById(“demo”);
    var h = addZero(d.getHours(), 2);
    var m = addZero(d.getMinutes(), 2);
    var s = addZero(d.getSeconds(), 2);
    var ms = addZero(d.getMilliseconds(), 3);
    x.innerHTML = h + “:” + m + “:” + s + “:” + ms;
    },false);
    function addZero(x,n) {
    while (x.toString().length < n) {
    x = “0” + x;
    }
    return x;
    }

    </script>

    Thread Starter mikecrf121

    (@mikecrf121)

    Ok Duplicate but you dont answer?? da f

    Thread Starter mikecrf121

    (@mikecrf121)

    THIS TOPIC IS NOT RESOLVED

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Time Stamp Question’ is closed to new replies.