Hide ALL fields in a very large form

Hide ALL fields in a very large form

Is there anyway to quickly generate a script that hides all fields for a large form or sub-form....... or is there at least a way to get a text list of fields within a form that appear in dropdowns in the script editor.

It would be so much easier to hide all fields on a very large form and just show what you need

Any insight to a short cut would be appreciated