I've the following code for repeater field. All the input fields in the repeater field except the radio button are working.
<div data-repeater-item>
<ul>
<li>
<div class="form-check form-check-inline">
<div class="custom-radio">
<input class="form-check-input" type="radio" name="period_type" id="inlineRadio7" value="Month">
<label class="form-check-label" for="inlineRadio7">Month</label>
</div>
</div>
<div class="form-check form-check-inline">
<div class="custom-radio">
<input class="form-check-input" type="radio" name="period_type" id="inlineRadio8" value="Day">
<label class="form-check-label" for="inlineRadio8">Day</label>
</div>
</div>
</li>
<li>
<input type="number" class="form-control" name="period" placeholder="00">
<label class="form-check-label">Month</label>
</li>
<li>
<label class="form-check-label">Default price
<!--per Month--></label>
<input type="number" class="form-control" name="default_price" placeholder="00,000">
</li>
<li>
<label class="form-check-label">Discounted price
<!--per Month--></label>
<input type="number" class="form-control" name="discount_price" placeholder="00,000">
</li>
<li class="add-remove">
<input class="remove" data-repeater-delete type="button" value="- Remove" />
</li>
</ul>
</div>
When clicking the radio button of 2nd or the following radio buttons group, the first radio button group is changing (Because of the id that i've provided for the radio input i think ). How to make the radio buttons works too?
Any help will be greatly appreciated.
every row unique
ID,lablefor&namevalJS
Use Custom Radio with bootstrap HTML
https://jsfiddle.net/lalji1051/034tp2ar/7/