Hi there, I am encountering an issue with the following code snippet:
<input type="radio" value="{{commencementDate.value}}" id="bankCommencementDateSelect" formControlName="bankCommencementDate">
<input #commencementDate id="bankCommencementDateInput" formControlName="bankCommencementDateInput" type="date" format="DD-MM-YYYY" min="{{ today | date: 'y-MM-dd' }}"/>
Currently, the value from the date input is supposed to be placed into the radio input. However, when I try to save the form, the value does not get saved and it triggers a validation error for the required field in the radio input.
I am looking to set the value of the radio button equal to whatever is entered in the date input so that it functions properly upon saving. I have attempted different approaches without success.
I would greatly appreciate any assistance on this matter. Thank you!