Recurring events when usign custom forms

When I use the custom form templates for the “lightbox” it seems to cause event_length to be calculated incorrectly. The recurring form shows up fine, but event_length is way off. Is there something I’m doing wrong?


{name:“description”, height:40, map_to:“text”, type:“textarea”,


{name:“details”, height:130, type:“textarea”,


{name:“time”, height:72, type:“time”, map_to:“auto”},

{name:“recurring”, height:115, type:“recurring”, map_to:“rec_type”,


{name:“priority”, height:40, type:“select”,



{key:1, label:“Normal”},

{key:2, label:“Moderate”},

{key:3, label:“Critical”}



{name:“has_reminder”, height:40, type:“select”,



{key:“0”, label:“No Reminder”},

{key:“5 minutes”, label:“5 minutes before”},

{key:“10 minutes”, label:“10 minutes before”},

{key:15, label:“15 minutes before”},

{key:20, label:“20 minutes before”},

{key:30, label:“30 minutes before”},

{key:45, label:“45 minutes before”},

{key:60, label:“1 hour before”},

{key:120, label:“2 hours before”},

{key:180, label:“3 hours before”},

{key:240, label:“4 hours before”},

{key:300, label:“5 hours before”},

{key:360, label:“6 hours before”},

{key:420, label:“7 hours before”},

{key:480, label:“8 hours before”},

{key:540, label:“9 hours before”},

{key:600, label:“10 hours before”},

{key:660, label:“11 hours before”},

{key:“12 hours”, label:“12 hours before”},

{key:“18 hours”, label:“18 hours before”},

{key:“1 day”, label:“1 day before”},

{key:“2 days”, label:“2 days before”},

{key:“3 days”, label:“3 days before”},

{key:“4 days”, label:“4 days before”},

{key:“5 days”, label:“5 days before”},

{key:“1 week”, label:“1 week before”},

{key:“2 weeks”, label:“2 weeks before”},

{key:“1 month”, label:“1 month before”}




Change the order of sections as

{name:“recurring”, height:115, type:“recurring”, map_to:“rec_type”, button:“recurring”},
{name:“time”, height:72, type:“time”, map_to:“auto”},

While in normal case , the order of sections doesn’t matter, in case of recurring events it is important that time section placed after recurring one.