I am working with a group of radio buttons. When a user chooses the option "yes," I would like to display an additional input box on the form.
HTML.component
<div formGroupName="radioButtonsGroup" class="form-group col-6 pl-0 pt-3">
<div class="form-check-inline" *ngFor="let item of personal.radioButtonsdata">
<label for="{{item.section}}" class="col-12 customradio"
><span>{{item.section}}</span>
<input [value]="item" id="{{item.section}}" type="radio" formControlName="selectedButton"/>
<span class="checkmark"></span>
</label>
</div>
<div class="col-md-8" > // Updated section for displaying input based on selected value
<input type="text" formControlName="title" class="form-control" placeholder="Title">
</div>
</div>
If anyone can help me troubleshoot why this is not functioning as desired, I would greatly appreciate it!