You can create an array of your form field (either the fields themselves, or
their names), and then loop over it and apply the same value to each.
Is this what you had in mind?
I think that might be the way of doing it, though I thought about making a group of particular fields (few check boxes, text boxes etc) and instead of looping over them one by one, assigning the whole group to variable and changing the attribute of this group, which is common for every field inside the group, like visibility for ex.
I'm just wondering if it's attainable.
As far as I know that's not possible, unless they all have the same name
(and therefore value.)
Yes you can if you use a heirarchical naming convention. For example, group1.name, group1.address, ...group1.zip:
// Hide all the group1 fields
getField("group1").display = display.hidden;