What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Set Conditions for Autorespond Emails Based on Submission Day?

    Asked by GD2Trial on December 31, 2013 at 12:31 AM

    I want to send different autoresponder emails based on whether users submit a form by a certain deadline each week. For example, if the user submits the form by Thursday at 11:59 p.m., I want one autoresponder email to go out. If the user submits the form on Friday at 12:01 a.m., I want a different email to go out.

    Right now I have a form set up so that the autoresponse email that is sent depends on the day that the user enters into a date field, with past dates disabled. However, as it is set up, it appears that a user can submit a form with yesterday's date as long as the form is opened prior to midnight. For example, someone can start a form at 11:45 p.m. on Thursday and submit it on Friday at 8 a.m.

    Is there a way to set conditions for autorespond emails based on the actual submission date and time?

    Emails form set date and time date field autoresponder email
  • Profile Image
    JotForm Support

    Answered by jonathan on December 31, 2013 at 07:17 AM

    Hi,

    This is possibel already using the DateTime field and autoresponder e-mail.

    I am not able to understand this statement

    For example, someone can start a form at 11:45 p.m. on Thursday and submit it on Friday at 8 a.m.

    Can you please describe how the user can do this on the form?

    If this was the form http://www.jotform.com/33628953498976 you were referring to, was the "Enable form to continue later" enabled on this form?

    --

    Is there a way to set conditions for autorespond emails based on the actual submission date and time?

    Use the DateTime field and set its property Defautl Time to ON. So, every time the form is submitted, it will check the value of Date/Time field -- it it is set to DEFAULT ON, then the current date/time will be checked.

    Please take note, if you set the Date/Time field Default to ON -- then its initial value will the current date/time when the form was loaded. The user can override this if they choose to manually fill-in the date/time field.

    A trick you can use is to use a separate hidden date/time field (using CSS code) so that the user will not be able to edit the value of the date/time field that will be used in condition logic.

    Hope I am able to explain properly. Contact us if you need further assistance.

    Thanks.

  • Profile Image

    Answered by GD2Trial on December 31, 2013 at 02:17 PM

    Thanks for such a quick response!

    I think my question wasn't as clear as it could have been. I want to send autoresponder emails based on the date the user actually submits the form, which can be different from the DateTime field that is added to the form (regardless of whether it is visible or set to Default on or off).

    Use the DateTime field and set its property Defautl Time to ON. So, every time the form is submitted, it will check the value of Date/Time field -- it it is set to DEFAULT ON, then the current date/time will be checked.

    Please take note, if you set the Date/Time field Default to ON -- then its initial value will the current date/time when the form was loaded. The user can override this if they choose to manually fill-in the date/time field.

    Yes, that is the problem. I want to send autorespond emails based on the submission date/time.

    If I base autorespond emails on the DateTime field that I include in a form, even with past dates disabled, either:

    1) With Default ON, the DateTime field on which the autorespond emails are based will reflect when the form was loaded, not when the form was submitted.

    As a result, as long as a user loads the form before the deadline, they get the pre-deadline autoresponder, even if they submit the form after the deadline. At least, unless the user changes the DateTime immediately before submitting the form, which they aren't going to do if it means missing the deadline.

    2) With Default OFF, the user can put any date that isn't in the past. However, whether the date is considered a past date appears to be based on the date as of the time the from was loaded, which presents the same problem.

    Was the "Enable form to continue later" enabled on this form?

    No, "enable forms to continue later" was disabled. Would enabling it automatically update the date and time over the period of time the form is open?
  • Profile Image
    JotForm Support

    Answered by jonathan on December 31, 2013 at 06:54 PM

    No, "enable forms to continue later" was disabled. Would enabling it automatically update the date and time over the period of time the form is open?

    It will not. The reason I asked you of this was because of your "example" statement 

    For example, someone can start a form at 11:45 p.m. on Thursday and submit it on Friday at 8 a.m.

    I am confused as how a user can be able to wait that long to submit the form(that is about 8hrs). The only means to get back to a form that was loaded previously and submit later.. is when the "Save Session" state is enabled -- that is the "Continue Forms Later" feature.

    I understand that my idea of setting the Default Time ON is not 100% accurate, -- as there can be small scale variable in time of form load and actual time of form submission. BUT I was not thinking it to be a variable of more than 1 hour.

    If this was the form http://www.jotform.com/33628953498976 you were working on, can we say that a maximum of 15mins was all it can take to submit that form? So, we are looking a variable time difference of 15mins at least.

    Please try my test form http://form.jotform.co/form/33646948626872  

    You can change the date and time field values. Then check the Thank You page or in your provided E-mail for the value of the actual Form Load Date/Time.

    My test form was meant to show how we can trick the form to have a hidden default date/time loaded that the form users cannot alter -- this information will only be available to you.

    You can use the hidded date/time field as the basis of the condition logic for the Autoresponder E-mail.

    Hope this help. Continue contacting us for any assistance needed.

    Thanks.

     

     

     

     

  • Profile Image

    Answered by GD2Trial on December 31, 2013 at 09:56 PM

    we are looking a variable time difference of 15mins at least

    The 8 hour difference was just an example. Most of the time it will be 15 minutes or so, but that 15 minutes is important to us.

    The reason the submission date matters is that the deadline is a trigger for a different autoresponder email. We have a  deadline of 11:59 p.m. on Thursday. If someone submits it at 12:01 a.m. on Friday, they've missed the deadline and we want them to get a different auto email.

    I understand there are ways to get close to the submission date, but given the work around proposed, I'm assuming the answer to my question about setting autoresponder emails based on the submission date is "no".

    I'll probably end up having notification emails sent to me that include the submission date (which I know I can do and figured I might be able to set conditions based on it as well). Then based on that date I'll just email people manually based on whether they have met the deadline.

    Thanks again for your help.

  • Profile Image
    JotForm Support

    Answered by jonathan on December 31, 2013 at 10:08 PM

    The closest to your requirement we can also do is to use the form's source code embed (guide: -How-to-get-your-Form-Source-Code)

    It will require you though to have the form's code embedded in your own website or on a website where you are allowed to use/add custom javascript code to compliment the form's requirement.

    Simply put, we can create another script outside the form that will capture the actual date/time of the form submission (not the loading date/time).

    If this is feasible for you, we can assist you create the javascript code that can achieve this.

    Thanks.