I have a reactive form that has the same (two) input text fields for several different scenarios. When a user selects a scenario option from a list, the form is shown and a hidden field within that form is updated with a keyword for the selected scenario, e.g.
<input formControlName="action" type="hidden" value="{{theaction}}">
My problem is that while that field is being updated (i.e. I can see it in reveal codes), the value doesn't seem to be bound to the form when it's submitted (i.e. the field is empty on arrival at the server).
What bit about reactive forms am I missing here?
Thanks/Tom