Is it possible to adjust email subject if form submitted after a specific time?

  • lafhab2
    Asked on August 20, 2019 at 9:58 AM

    Hi, I am wanting the subject line to be altered if a form is submitted after a specific time (so it is flagged the following day)

    Eg if form submitted time > 16:30, add ***** to the start of the subject line.

    I can create a time field, and a short text box (which could be the first part of the subject line), but I can't use rules to insert '*****' when time > x.

    Is there a way of achieving this or a workaround?

  • Ivaylo JotForm Support
    Replied on August 20, 2019 at 11:30 AM

    Yes, there is a workaround and it is possible. In order to do this, first you should add a Time field and a Short Text Entry field. You should set the Default Time of the Time field to Current. You should also set the default value of the Short Text Entry to something like "This is a title before 16:30". Then you should hide both fields and create a condition.

    1566314585chrome kK52n7kVgd Screenshot 10

    The condition should look like this:

    1566314638chrome iEp1dqRNCq Screenshot 21

    Then you should just add the Short Text Entry field to the title of the autoresponder or notification.

    1566314799chrome 8PKGs5m4tH Screenshot 32

    So, your form will calculate the value of the Short Text Entry field according to the time and then display this field in the title of the autoresponder or notification.

    Please give it a try and let us know, how it works for you.

    We will wait for your response


  • lafhab2
    Replied on August 20, 2019 at 11:42 AM

    Thanks that looks perfect, very much along this lines of how I thought it would work. Have put it in a form and will test very shortly! 

  • Ivaylo JotForm Support
    Replied on August 20, 2019 at 1:09 PM

    Please take your time and do your tests and let us know if you need any further assistance.

  • lafhab2
    Replied on August 21, 2019 at 6:01 AM

    Yes it works fine, at first it didn't but then I found it did not work if the clock was in 24h format.


    Many thanks!


  • Ashwin JotForm Support
    Replied on August 21, 2019 at 8:08 AM

    I am glad to know that your form works as expected. Do get back to us if you have any questions.