This is probably an odd question, so bear with me. Imagine you have a form that has several elements:
<input name="firstname">
<input name="lastname">
<input name="specialid">
<input name="blahid">
<input name="whateverid">
...
And your site is composed of hundreds (possibly thousands) of different "groups" or accounts. Most of the groups in question should be seeing all elements of the form, but several of the groups shouldn't be seeing the last 3 input fields. Some of the groups should be seeing only the "specialid" field. Others should only be seeing the "blahid" field. And so on.
Imagine that you have many forms on your site, where you would like to turn off individual elements per group for each form. Using "if" statements on each form element is not an option, as there could literally be hundreds of groups per form element that need to have it turned off -- we're talking major yucky spaghetti code.
How would you handle this situation in an elegant manner?