While theming form in template file I used
drupal_render to print selected fields of form. But after hit submit button, data is not saving, means submit button is not working.
I know one solution is to use
drupal_render_children but it is giving me every child of form, means I'm getting all of the elements of form.
I don't want form's each and every element.
Only selected fields should get rendered.
Any way to print form selected field elements in tpl file with a working submit button?