Date and Time Elements: How to set the default date/time based in an external source instead of using the device's date/time?

  • MaidCrew
    Asked on May 12, 2018 at 11:13 AM

    FORM ELEMENTS: Date Picker & Time elements / form fields.... 

    USE: We use the Time & Date Picker form elements & have built rules or conditions off of CURRENT Time & Date (hidden from user) to determine if a user is trying to change or cancel an appointment AFTER a deadline. Everything works fine IF THE USER's DEVICE IS ACCURATELY SET TO SHOW CURRENT DATE & TIME. If user's device settings are correct, and they try to submit a change or cancellation past the deadline, a message "shows" that reads "You are attempting to modify an appointment after the deadline which will result in a $50 Late-Cancel fee. (Deadline was yesterday at 12pm) Do you wish to continue?”

    PROBLEM: Smart people know that they can manipulate a form by changing their device's current date & time to something OTHER THAN the accurate date & time.  If someone wanted to avoid a late-cancel fee, all they have to do is change their device’s date & time settings, and submit their request.  On our end, once we receive it, we would simply think their submission got hung-up in delivery… and they could argue that they submitted their cancellation request before the deadline and thereby avoid a late-cancel fee.

    QUESTION: Is there a form element or properties setting available (and if not, can one be created) that DOES NOT rely on the date & time setting on the user’s device, but rather pulls the current, accurate date & time from an outside source which could then be used in creating rules & conditions off of?

  • Kevin Support Team Lead
    Replied on May 12, 2018 at 12:40 PM

    Unfortunately, it's not possible to change that, even the widgets seem to be taking the time and date from the device. 

    I will pass this to our second level, although we cannot provide an ETA, we will keep you updated via this thread. 

    Thanks. 

  • MaidCrew
    Replied on May 12, 2018 at 2:30 PM

    I've noticed that once a form has been submitted, the submission log/form is able to date/time-stamp the submission using the Jotform Server time, and render the Date&Time based on Timezone & Time Format as set up in the Account Settings.

    I ran a test... I changed my device's date and time to something other than the accurate date & time. I then filled out my form and submitted it. While the Date Picker & Time elements/fields rendered the date & time as set-up on my device, the submission log/form showed the ACCURATE time based on Jotform's servers (and my account settings).

    Suggestion... perhaps the developers could, within the Date Picker Element, create a fourth DEFAULT DATE/TIME option called "SERVER" that defaults to prepopulating the field (once the form is activated) with the current date & time shown in Jotform's servers (rendered in accordance with the timezone & time format shown in account settings). ????

    Another suggestion would be to allow, within the EMAIL composition, a "Submission Date" in addition to a "Submission ID"... that way we can include the same data (date & time) in our emailed notification as what's available for viewing in the submission log.

  • Adrian
    Replied on May 12, 2018 at 3:33 PM

    That is correct. The Submission Date/Time shown on the submissions page does not depend on the user's device/machine time.

    Unfortunately, you cannot use that time in the conditions or add it to the email templates.

    Thank you for your suggestions. The issue (feature request) has already been forwarded to our developers. We will let you via this thread when there is an update on this.