I thought this would be a quick search on google but maybe I'm missing something. Is there a way, using Data Annotations, to set a ViewModel property to create a HiddenInput when the markup get rendered?
The only annotations I've found were to hide the property from the view entirely, I still want the property rendered but as a hidden input.