maps form elements using mapFormElements