I would like to know if there is a way to simply not save elements from a form. I know that we can hide elements with
#type = hidden/value, etc., but I would like to remove then completely from the form saving process.
I'm building a lot of "partial" forms (small part from a big one) and every time that I want to build a small form, with 2 fields, Drupal processes 20 fields and I have to hide the others 18 fields. It doesn't make sense for me. I'm sure that Drupal can handle this better than hide and I'm missing something.
Complete form: name, age, city, country, phone
Form #1: name, age
Form #2: city, country
I would like to build a form like the #1 (with name and age only) and save it without loosing the data from city, country and phone BUT without hiding fields, valuing them nor with
#access = FALSE.
Let me know if I'm still not clear enough. THANKS!!