E-Mail & Print Body. Values for Start Time and End Time

Forums Dynamic Forms for SharePoint E-Mail & Print Body. Values for Start Time and End Time

This topic contains 2 replies, has 2 voices, and was last updated by  Jon Code 1 week, 3 days ago.

  • Author
    Posts
  • #21644

    Jon Code
    Participant

    Greetings,

    I have setup custom forms for NewItem/DisplayItem and EditItem for a calendar. As part of its function I would like to email a user the details when a form is created or edited.
    I presently have in the body of the email and Print the following html:

    <p> Start Date {Start Time}<br> End Date {End Time}<br> Category {Category} </p>

    Click here to review

    What I receive in the email is this:
    Start Date {Start Time}
    End Date {End Time}
    Category Union Business

    Click here to review

    As you can see above the category is filled in but not the Start Time and End Time fields.
    Start Time and End Time are standard calendar fields so I am not sure why they are not displaying correctly.

    Thx.

  • #21648

    AdamP
    Participant

    Double check your field names – they should be the internal names, not the display names (see the fields tab in DFFS config and copy/paste for best results).
    In SP2010 the internal names for start time and end time in calendars aren’t entirely logical;
    EventDate for start time, so use {EventDate}
    EndDate for end time, so use {EndDate}

    I don’t know if that holds true for later versions of SharePoint, but it’s a good place to start looking.

    Adam

  • #21650

    Jon Code
    Participant

    Yes the Field Tab helped sort that out.

    Start Time – EventDate
    End Time – EndDate

    Thanks for your help!

You must be logged in to reply to this topic.