In my usual practice, when I need a form field to be part of the submission but not visible, I typically use <input type="hidden" />
However, when working with matInput
, the option for a type of hidden
is not available. While I could apply display: none;
, this method often omits the value from the submission process.
Is there a method to conceal the input in a dynamic material form while still ensuring the value is included in the submission?