Ticket 551: allow specification of return format via submission form