Thanks for your reply. I also get the same error when trying to load a form containing a timepicker through a template.