add formType property to the form element