Your browser does not support javascript. This is required for using the requested form.
Wizard: Add calendar file (.ics) to email message
Calendar data
Fixed
Variable
Title
Location
Summary
Start date
mm/dd/yyyy
Start time
Eind
date
mm/dd/yyyy
Eind time
static_dtstart
static_dtend
Add the following elements to your form:
Start date (Text field, type date)
Start time (Text field, type time)
End date (Text field, type date)
End time (Text field, type time)
Title of the appointment (not required)
Location of the appointment (not required)
Summary of the appointment (not required)
Enter the names of the identifiers below:
Start date
identifier
Start time
identifier
End date
identifier
End time
identifier
Title identifier (not required)
Location
identifier (not required)
Summary
identifier (not required)
Copy the script below and paste it within the HTML tab of a new Text element on your form. Once you have done this, click Continue at the bottom of this page to complete the wizard.
<script language="javascript">
(function() {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var start_date_identifier = ("[start_date_identifier]");
var start_time_identifier = ("[start_time_identifier]");
var start_datetime_identifier = ("[start_datetime_identifier]");
var end_date_identifier = ("[end_date_identifier]");
var end_time_identifier = ("[end_time_identifier]");
var end_datetime_identifier = ("[eind_datetime_identifier]");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function mergeStartDateTime() {
var combined = FDDate.parse($('#' + start_date_identifier).val() + ' ' + $('#' + start_time_identifier).val());
if (combined && combined.date) {
var datestring = combined.date.getFullYear() + ("0"+(combined.date.getMonth()+1)).slice(-2) + ("0"+combined.date.getDate()).slice(-2) + "T" + ("0" + combined.date.getHours()).slice(-2) + "" + ("0" + combined.date.getMinutes()).slice(-2) + "00";
if (FD.get(start_datetime_identifier)) { FD.get(start_datetime_identifier).value = (datestring); $(FD.get(start_datetime_identifier)).trigger('blur'); }
};
}
function mergeEndDateTime() {
var combined = FDDate.parse($('#' + start_date_identifier).val() + ' ' + $('#' + start_time_identifier).val());
if (combined && combined.date) {
var datestring = combined.date.getFullYear() + ("0"+(combined.date.getMonth()+1)).slice(-2) + ("0"+combined.date.getDate()).slice(-2) + "T" + ("0" + combined.date.getHours()).slice(-2) + "" + ("0" + combined.date.getMinutes()).slice(-2) + "00";
if (FD.get(end_datetime_identifier)) { FD.get(end_datetime_identifier).value = (datestring); $(FD.get(end_datetime_identifier)).trigger('blur'); }
};
}
FD.Events.AttachEvent('BeforeLoad', function () {
if (FD.get(end_date_identifier) && FD.get(end_time_identifier)) {
aEvents.attach(start_date_identifier, function (changed, e, el) { if (e && e.type == "blur") { mergeStartDateTime(); } });
aEvents.attach(start_time_identifier, function (changed, e, el) { if (e && e.type == "blur") { mergeStartDateTime(); } });
}
if (FD.get(end_date_identifier) && FD.get(end_time_identifier)) {
aEvents.attach(end_date_identifier, function (changed, e, el) { if (e && e.type == "blur") { mergeEndDateTime(); } });
aEvents.attach(end_time_identifier, function (changed, e, el) { if (e && e.type == "blur") { mergeEndDateTime(); } });
}
});
FD.Events.AttachEvent('AfterLoad', function () {
if (FD.get(start_date_identifier) && FD.get(start_time_identifier)) {
mergeStartDateTime();
}
if (FD.get(end_date_identifier) && FD.get(end_time_identifier)) {
mergeEndDateTime();
}
});
FD.Form.addEvent("onAfterLookup", function() {
if (FD.get(start_date_identifier) && FD.get(start_time_identifier)) {
mergeStartDateTime();
}
if (FD.get(end_date_identifier) && FD.get(end_time_identifier)) {
mergeEndDateTime();
}
});
})();
</script>
Fill in your emailaddress below and click the Send button.
You will receive the ICS file as attachment within an e-mail message.
Add the ICS file within your own email message and select the option "use merge codes".
Your email address
*
*
=
Input is required