Added an input type hidden. Widgets now receive the record and form type.