get_form_fields method Closes #4275

@coenjacobs please review. I believe its cleaner this way.