Why extra text is not displaying in Title of emails?

  • kittystorms
    Asked on September 15, 2016 at 9:05 AM

    Hi!

    I created a couple of JotForms to email coupons & groceries to my Todoist. and it works great. Mostly.

    In order to assign a due date in Todoist, I need to insert <date YY>, with YY being the date. When I create the notification email, I input

    <date {expires}>

    I've tried it a couple of different ways, but the date never appears in the task. When I included it in the body of the email (and not the subject line), the following text was displayed:

    &lt;date YY&gt;

    I tried adding pre, blockquote, code before and after the <date YY>, but I still can't get it to display properly.

  • Nik_C
    Replied on September 15, 2016 at 11:56 AM

    I assume you're picking up the value for 'expires' from expires field:

    Why extra text is not displaying in Title of emails? Image 1 Screenshot 50

    And you were using the correct field name: {expires}, that will pass information to Title of the email. If you would like to have Date always in the same format you can use Date field instead of Text field:

    Why extra text is not displaying in Title of emails? Image 2 Screenshot 61

    And then use that field's name to show it in the Title of the email:

    Why extra text is not displaying in Title of emails? Image 3 Screenshot 72

    You will have in your email looking like this:

    Why extra text is not displaying in Title of emails? Image 4 Screenshot 83

    If you need further assistance please let us know.

    Thank you!

     

     

  • kittystorms
    Replied on September 15, 2016 at 9:15 PM

    I'm not having a problem with the date itself - I'm having problems when I add specific characters to the subject line. 

    I've added the same text to the subject line and body:

    Why extra text is not displaying in Title of emails? Image 1 Screenshot 30

    But the <date {expires}> in the subject disappears when emailed to Todoist:

    Why extra text is not displaying in Title of emails? Image 2 Screenshot 41

    The <date > is required in Todoist to schedule a date.

    Why does the entire block of text disappear? 

    Thanks!

  • David JotForm Support Manager
    Replied on September 15, 2016 at 11:11 PM

    Please try the following method:

    {firstPart} {expires} {secondPart}

    Why extra text is not displaying in Title of emails? Image 1 Screenshot 20

    Let us know if you need more help.

  • kittystorms
    Replied on September 22, 2016 at 11:53 AM

    I tried that and it still didn't work :(

    This is what I see when I put {firstPart} {expires} {secondPart} in the body of the email (if I put it in the subject line, the date doesn't appear at all)

    Why extra text is not displaying in Title of emails? Image 1 Screenshot 20

     

    Thank you!

     

     

  • David JotForm Support Manager
    Replied on September 22, 2016 at 2:06 PM

    After investigating further, I found out that content within angle brackets disappear, that's why you don't see the data in the notification. That happens because in non-code, anything that looks like <xxxx> will disappear because it will be triggered as an unknown/not allowed HTML tag.

    In order to solve this, you can use &lt; for <, and &gt; for >.  You need to insert this in the source code of your email notification, example:

    Why extra text is not displaying in Title of emails? Image 1 Screenshot 30

    Result:

    Why extra text is not displaying in Title of emails? Image 2 Screenshot 41

    Let us know if you need more help.