Extract visits and foundons to the form template.