• Resolved mikecrf121

    (@mikecrf121)


    This is the last thing i need to work on my site…
    thank you in advanced!!
    ive tried using the following code with no avail. i can set an alert to give me the correct time but cannot set an element in the form to get sent to the email with the value….

    The alert for ttlTime i belive gives me the correct time to the millisecond.. where im struggling is getting that value into the email sent on submission… or inserted into a form field.. like a hidden one… cant figure it out…

    thank you!!

    This is where im attempting to do this…

    // Occurs just before submitting the form
    function before_submit() {

    alert(“test”);
    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);
    var ttlTime = h + “:” + m + “:” + s + “:” + ms;
    x.value = ttlTime;
    var toy = document.getElementsByClassName(“demo”);
    toy.value = ttlTime;
    alert(ttlTime);

    function addZero(x,n) {
    while (x.toString().length < n) {
    x = “0” + x;
    }
    return x;
    }

    }

Viewing 1 replies (of 1 total)
  • Plugin Support Zhanna Khachatryan

    (@zhannak)

    Dear Mike,

    We have created a custom version for you which I have sent earlier in the other forum support thread you have opened.

    https://drive.google.com/file/d/1_QrPqfQilT80G_QjusyImzJIKg9HZaSz/view?usp=sharing

    Please download it from this link and install. Before installing this version, please deactivate and delete the free version then install this version. No data will be lost.

    You don’t need to change any settings, it should stamp milliseconds in the email by default.

    If it doesn’t work as required please send me the screenshot of the email to see how it displays time in custom text.

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