Well, hidden fields are just like other fields. Although it is better using the
HiddenFor[
^] method instead of
Hidden[
^] if possible, you should have a hidden field rendered with name
HProjectTypeId
and the value from
Model.ProductTypeId
.
You should check in the browser, to see it for yourself.
But, what you get back in the action depends on many things. Most on the automatic mapping, which is working really good, but it can't guess your thoughts. This is why you should use "...For" methods, because they will generate field names using the same logic as the mapper uses.
So check the field name: is the "H" at the beginning also in the model's property name? If not, remove it!
If you post the model, the view and the action (only the prototype, not the method body) you are posting to, I can tell you precisely what you are missing.