Populate Checklist with fields from different form

Populate Checklist with fields from different form

Not sure if this or possible but would make life so much easier.

Form A has 100 different fields. 1 Field ( lead_type)  will be a lookup field to form B
Form B has just a few with one of them being a check box listing  all the fields from form A.

In form B we will check the fields we want to appear for the different lead types ( based upon the look up)
Then show or hide them accordingly .

Now can i do this as an array of some type or will i have to do code for each leadtype i add  I want to be able to change criterea and not have to change the deluge every time. 

If i didnt explain this well enough and someone can explain it better please do 

Please post code examples