How can I create an .ics file to be emailed from my form submission

  • ljurado37
    Asked on March 20, 2015 at 5:32 PM

    I have a form I created to be filled out by a user in textbox (name, phone, email, date of event, time of event, event name)

    I want to have form results emailed, which Im using your email notifier. ( I know how to do that)

    Then have the results displayed in a thank you page, which im using your thank you page wizard, thank you message with the form fields {example} .

     

    What I want to do is have the results of the form create an ics file to be attached to the email. So i can quickly click on it in the email and it adds to my calendar.

    or have the form generate a link in the email body that i can click to add to my calendar.

     

    How can i do this?

  • Mike
    Replied on March 20, 2015 at 8:33 PM

    Thank you for contacting us.

    Unfortunately, we do not have an option to create .ics files and we do not support email attachments.

    You can add a custom link to the email, so in theory it is possible to generate the .ics file on the fly by accessing the link. Note, you will need a custom script and hosting for that script somewhere. A script example can be found on the next page.

    https://gist.github.com/jakebellacera/635416

    If you need any further assistance, please let us know.

  • ljurado37
    Replied on March 20, 2015 at 9:20 PM

    ok.

    let me know if i get this right or if you can explain how this would function.

    my form will create the email with all the event details, then i receive that email and inside it will have a link to create an ics file?

    what happens when i click the link in the email? Does the script take the information from my email and convert it to an ics file automatically or is this a link that will bring me to another page that i have to fill out all the event details again?

    also this script, where do i insert the code in the email template? or in the body of the form?

  • ljurado37
    Replied on March 20, 2015 at 9:26 PM

    What im trying to do is create a proposal for my services with a date and time have that proposal emailed to my client and my self then if the client agrees to my service i can go back to the email in my phone click a button in the email that adds the event to my google calender. Or both me and the client can add the event to our calendar. 

  • ljurado37
    Replied on March 21, 2015 at 10:50 AM

    ok i got it thank you.

    only problem i think the date and time variable is in unix epoch

    $datestart - the starting date (in seconds since unix epoch)
    $dateend - the ending date (in seconds since unix epoch)
     
    on my form i have your calendar date and time selector so it shows as mm-dd-yy hh:mm
     
    but unix epoch is 1426948938
     
    do you have a calendar that produces this date?
     
    am i missing something?
  • ljurado37
    Replied on March 21, 2015 at 8:05 PM

    ok thank you, I'll give it a try.

  • KadeJM
    Replied on June 29, 2016 at 10:15 AM

    We have some good news about this and we wanted to inform you that it is now possible to attach uploaded files to your emails.

    Please see https://www.jotform.com/blog/uploaded-files-as-email-attachments/ for more information.

  • eriediocese
    Replied on February 28, 2017 at 3:19 PM

    But that still won't generate the ICS file from the submission using the unique answers to date/time/location submitted on the form correct?

  • David JotForm Support
    Replied on February 28, 2017 at 5:37 PM

    That is correct.  You can attach a predefined .ics file to your emails but it is not possible to generate one based on the form submission data.