Multiple Field support and also having it create both the actual field and the hashed field.

Oct 24, 2012 at 9:56 PM

A couple suggestions to add to your code or I can check in my modifications to your code base.

1) I needed it to handle multiple hidden fields and the attribute will only allow it being used once and with only one field.  So I modified it to allow n+ number of fields in the attribute parameter.

2) I wanted it to be able to have it create both the actual field and the token field in one call. To have developers remember it, I named it starting with HiddenFor to be HiddenForWithAntiModelInjectionFor.


Let me know if you'd like me to submit my code.